SQL Distinct is used to fetch different values or we can say, that It need to fetch unique values.
For Example :
Table Name : customers
Column Names :
c_name
c_id
c_city
c_state
c_contact_number
SQL Query :
SELECT DISTINCT column_name FROM table_name
SELECT Distinct c_name FROM customes
0 Comments