unique vs distinct which is better code example
Example: sql distinct vs unique
Unique: helps to ensure that all the values
in a column are different
Distinct: helps to remove all the duplicate
records when retrieving the records from a table.
Unique: helps to ensure that all the values
in a column are different
Distinct: helps to remove all the duplicate
records when retrieving the records from a table.