SQL Language Reference

This section provides comprehensive documentation for the SQL Server Transact-SQL (T-SQL) language. Discover the syntax, functions, and statements used to interact with and manage SQL Server databases.

Core Concepts

Understanding the fundamental building blocks of T-SQL is crucial for effective database development. Explore topics such as:

Statements and Commands

Master the essential T-SQL statements for data manipulation, definition, and control.

Data Manipulation Language (DML)

Data Definition Language (DDL)

Data Control Language (DCL)

Built-in Functions

SQL Server provides a rich set of built-in functions for various tasks:

Category Function Name Description
Aggregate AVG() Calculates the average value of a column.
Aggregate COUNT() Counts the number of rows or non-null values in a column.
Aggregate MAX() Returns the maximum value in a set of values.
Aggregate MIN() Returns the minimum value in a set of values.
Aggregate SUM() Calculates the sum of values in a numeric column.
String CONCAT() Concatenates strings.
String LEN() Returns the length of a string.
String LOWER() Converts a string to lowercase.
String UPPER() Converts a string to uppercase.
Date and Time GETDATE() Returns the current database system date and time.
Date and Time DATEPART() Returns a specified part of a date as an integer.
Mathematical ABS() Returns the absolute value of a numeric expression.
Mathematical ROUND() Rounds a numeric value.

Advanced Topics

For detailed syntax and examples of each statement and function, please navigate through the sidebar or use the search functionality.