Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How do we use the DISTINCT statement? What is its use?
Home
Sql
How do we use the DISTINCT statement? What is its use?
0
votes
asked
Nov 26, 2020
in
Sql
by
SakshiSharma
How do we use the DISTINCT statement? What is its use of DISTINCT statement?
#sql-distinct
#distinct-statement
#
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Nov 26, 2020
by
rajeshsharma
The DISTINCT statement is used with the SELECT statement. If the record contains duplicate values then the DISTINCT statement is used to select different values among duplicate records.
Syntax:
SELECT DISTINCT column_name(s)
FROM table_name;
...