Login
Remember
Register
Ask a Question
Write a SQL SELECT query that only returns each name only once from a table?
+1
vote
asked
Jul 10, 2020
in
Sql
by
SakshiSharma
Write a SQL SELECT query that only returns each name only once from a table?
#sql-select
#select-sql
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 10, 2020
by
sharadyadav1986
To get the result as each name only once, we need to use the DISTINCT keyword.
SELECT DISTINCT name FROM table_name;
...