Tag Archives: SQL Distinct Keyword

SQL Distinct Keyword

When we want to fetch or display unique data from the table then we use the SQL DISTINCT keyword. The only purpose of the DISTINCT keyword to eliminate the duplicate record and select only the unique ones. DISTINCT Keyword Syntax Follow this syntax to use the DISTINCT keyword: SELECT DISTINCT column1, column2, … FROM table_name; Example Consider this table of Students: +——+——–+——+——–+——-+———-+ |… Read More »