The DISTINCT keyword eliminates duplicate rows from the result set of a SELECT statement. If DISTINCT is not specified, all rows are returned, Including duplicates.
Syntax :
EXAMPLE :
It will be show only unique records in the result set .
Syntax :
SELECT DISTINCT <COLUMN_NAME> FROM <TABLE_NAME> |
SELECT DISTINCT AIRLINE_CODE FROM AIR_MASTER |
It will be show only unique records in the result set .
No comments:
Post a Comment