Quantcast
Channel: The Happy Coder » query
Browsing all 5 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

SQL – it’s more than just CRUD: PIVOT queries

Okay, now that I’ve gotten your attention…. While the basic functions are still Create – Retrieve – Update – Delete (CRUD) you can do more than just insert, select, update and delete data. You can...

View Article



Image may be NSFW.
Clik here to view.

SQL – it’s more than just CRUD: MERGE queries

The previous post in this series dealt with PIVOT queries. They are a great addition to the SQL Developer’s bag of tricks. This post deals with another powerful query – the MERGE query. What is a MERGE...

View Article

Image may be NSFW.
Clik here to view.

SQL – it’s more than just CRUD: UNION queries

So, we’ve covered PIVOT and MERGE queries and it is time to move on to UNION and UNION ALL. UNION queries allow you to combine two or more SELECT queries into a single result set. It’s just that...

View Article

Image may be NSFW.
Clik here to view.

SQL – it’s more than just CRUD: Common Table Expressions (CTE)

Common Table Expressions, or CTE, are derived tables only they’re not. A derived table is like an “in-line” view that you have within a query. A CTE is like that but it can call itself and can be...

View Article

Image may be NSFW.
Clik here to view.

SQL – it’s more than just CRUD: Group by – Cube and Rollup

Okay, it is now time to talk about GROUP BY CUBE and GROUP BY ROLLUP. This is going to be the last installment in the “CRUD” series. The two clauses are used to provide simple reporting functionality...

View Article

Browsing all 5 articles
Browse latest View live


Latest Images