Use these 50 T-SQL examples to find and combine data, build reports, rank rows, and make controlled changes in SQL Server.
SQL Tutorial
- Top 50 SQL Server Queries Every Developer Should Know
- Mastering T-SQL: Essential Commands and Techniques for SQL Server
- JSON Querying and Extracting Values
- Table variables
- Temporary Tables
- RETURN
- CONTINUE
- BREAK
- WHILE Loops
- STRING_SPLIT
- How to Make a Search Query That Contains Each Word of a String
- SQL interview questions with answers
- How to find if a foreign key exists
- Select in Where clause
- Having vs Where clause
- IF ELSE Statement
- Parse Text to JSON
- FOR JSON clause
- OPENJSON function
- ISJSON function
- JSON_MODIFY function
- JSON_QUERY function
- JSON_VALUE function
- SQL Server JSON
- SQL convert to lowercase
- SQL clustered vs non clustered index
- SQL Truncate Table vs Delete
- SQL alter type of column
- Find duplicates SQL Query
- DATETIMEOFFSET
- SMALLDATETIME
- SQL compare date
- SQL query update table
- Concatenation in SQL query
- EOMONTH
- Weekday function
- Get first day of month
- Multiple WHERE Conditions in SQL Server
- SQL Stored Routines
- SQL cast as integer