Skills SQL Server TSQL: Difference between revisions

From MillerSql.com
NeilM (talk | contribs)
No edit summary
NeilM (talk | contribs)
Line 12: Line 12:


== Window functions ==
== Window functions ==
OVER (ORDER BY col1)


== Group by/aggregation ==
== Group by/aggregation ==

Revision as of 11:50, 7 October 2024

Standard SQL

Select, Insert, Update, Delete, Truncate, Merge

Window functions

OVER (ORDER BY col1)

Group by/aggregation

WHERE clause / Having

CTE - Common Table Expressions

Used at:...
  Used at: 
  MUFG Securities

Use of SQL Server CTEs (Common Table Expressions).

Sorting

Sort by

Sub-queries

Views

Joins

Stored Procedures

Pivot

Used at:...
  Used at: 
  Autodata

Pivot function

Unpivot function

Union

Used at:...
  Used at: 
  Autodata

Union

Union All

Datatypes

Int, VarChar(8000), DateTime

Dynamic SQL

Used at:...
  Used at: 
  Autodata

Dynamic SQL

SQL Injection

Other

Cursors

BCP - Bulk copy protocol

Triggers