0

Can anyone tell me what does distinct function do in SQL

6th Feb 2020, 4:01 PM
Harv
4 Respuestas
+ 2
The SELECT DISTINCT statement is used to return only distinct (different) values. Inside a table, a column often contains many duplicate values; and sometimes you only want to list the different (distinct) values.
6th Feb 2020, 4:02 PM
Khatakh
Khatakh - avatar
+ 2
It clearly says that the Distinct keyword only fetches the unique values. https://www.sololearn.com/learn/SQL/1853/
6th Feb 2020, 4:13 PM
Avinesh
Avinesh - avatar
+ 1
Thanks everyone
6th Feb 2020, 4:22 PM
Harv
+ 1
Avoid putting duplicates.
7th Feb 2020, 2:50 AM
Sonic
Sonic - avatar