HOW TO SELECT DISTINCT VALUES IN SQL?

465 viewsSQLSQL
0

HOW TO SELECT DISTINCT VALUES IN SQL?

Saraswat World Changed status to publish June 14, 2023
0
SELECT DISTINCT in SQL
SELECT DISTINCT in SQL
SELECT DISTINCT

The SQL DISTINCT command is used with SELECT key word to retrieve only distinct or unique values.

Syntax-

SELECT DISTINCTย column_name1, column_name2, โ€ฆcolumn_nameN

FROMย <table_name>;

Description-

The distinct values from column_name1, column_name2, โ€ฆcolumn_nameN will be retrieved. It will avoid duplicate data.

Saraswat World Changed status to publish June 14, 2023
Write your answer.

Posted

in

Tags:

Comments

Leave a Reply

A Tribute to Dilip Kumar