DISTINCT – SQL Server Syntax Example: DISTINCT – T-SQL Example

DISTINCT – SQL Server Syntax Example: DISTINCT – T-SQL Example Purpose: – Illustrates the SQL Server syntax for the DISTINCT. SYNTAX: SELECT [ ALL | DISTINCT ] [TOP ( expression ) [PERCENT] [ WITH TIES ] ] [ INTO new_table ] [ FROM { table_source } [ ,…n ] ] [ WHERE search_condition AND search_condition ] [ GROUP BY ] [ HAVING search_condition ] [ ORDER BY order_expression [ ASC | DESC ] PURPOSE:... [Read More...]