Description The SQL Server (Transact-SQL) SELECT statement is used to retrieve records from one or more tables in a SQL Server database. Syntax In its simplest form, the syntax for the SELECT statement in SQL Server (Transact-SQL) is: SELECT expressions FROM tables [WHERE conditions]; However, the full syntax for the SELECT statement in SQL Server (Transact-SQL) is: SELECT [ ALL | DISTINCT ] [ TOP (top_value) [ PERCENT ] [ WITH TIES ] ] expressions FROM tables [WHERE conditions] [GROUP BY expressions] [HAVING condition] [ORDER BY expression [ ASC | DESC ]]; Parameters or Arguments ALL Optional. Returns all matching rows. DISTINCT Optional. Removes duplicates from the result set. Learn more about the DISTINCT clause TOP (top_value) Optional. If specified, it will return the top number of rows in the result set based on top_value . For example, TOP(10) would return the top 10 rows from the full result set. PERCENT Optional. If specified, then the...