Writing a SELECT statement
What are the basics in writing a T-SQL SELECT? How to return columns and records from a table in SQL Server.
What are the basics in writing a T-SQL SELECT? How to return columns and records from a table in SQL Server.
In this post, we discuss what columns and records are in a SQL table including an explanation of objects and entities.
How to use the ORDER BY statement to sort records in a T-SQL statement in both ascending and descending order.
How to use the WHERE statement to filter records when a value IS NULL or IS NOT NULL in a T-SQL statement.
How to use the WHERE statement to filter records when the value is a number or integer data type in a T-SQL statement.
How to use the WHERE statement to filter records when the value is either a Date or a Time in a T-SQL statement.
How to use the WHERE statement to filter records when the value is a character data type in a T-SQL statement.
What is a SQL Function and how to use a function in a T-SQL statement? We use the GetDate() and LEFT() functions as examples.
How to work with NULL values in Aggregate Functions in a T-SQL statement. How to fix issues with NULL values with the AVG() and COUNT() functions.
The SQL Coalesce function is used when you want to combine values from a series of columns or expressions when they might contain NULL values.