SELECT DISTINCT
The SQL DISTINCT command is used with SELECT key word to retrieve only distinct or unique values.
Syntax-
SELECT DISTINCTย column_name1, column_name2, โฆcolumn_nameN
FROMย <table_name>;
Description-
The distinct values from column_name1, column_name2, โฆcolumn_nameN will be retrieved. It will avoid duplicate data.
Saraswat World Changed status to publish June 14, 2023
Leave a Reply