Professional Documents
Culture Documents
Microsoft SQL
Microsoft SQL
Foundations of T-SQL
Logical query processing
The SELECT statement
Filter data with predicates
Sorting data
Filtering data with TOP and OFFSET-FETCH
Combining sets with set operators
Evolution
Using T-SQL in a relational way
Using correct terminology
1. SELECT 1. FROM
2. FROM 2. WHERE
3. WHERE 3. GROUP BY
4. GROUP BY 4. HAVING
5. HAVING 5. SELECT
6. ORDER BY 6. ORDER BY
From clause
Select clause
Cross joins
Inner joins
Outer joins
Queries with composite joins and NULLs join columns
Multi-join queries
Inserting data
Updating data
Deleting data
Merging data
Using the OUTPUT option
Impact of structural changes on data
Subqueries
Apply
Derived tables
Common table expressions
Views
User-defined functions
Stored procedures
Understanding transactions
Error handling with TRY-CATCH