Answer:
The DISTINCT keyword in SQL allows you to select only those records that contain unique values for the columns requested in a SELECT statement. Duplicate values are ignored and only displayed once.
Ex:- using emp table
Emp ID EmpName
1 Aswini A
2 Aswini A
3 Aluri
then
select distinct EmpName from emp
then it displays
only
EmpName
Aswini A
Aluri
Asked In: Many Interviews |
Alert Moderator