Related questions

0 votes
1 answer
asked Aug 10, 2017 in MySQL by anonymous
0 votes
0 answers
asked Sep 24 in MySQL by IBM DB2, Oracle, MySQL
0 votes
1 answer
BJSHUB - is a place to gain and share knowledge. It's a platform to ask questions and connect with people who contribute unique insights and quality answers.

MySQL Distinct Clause

0 votes

MySQL Distinct Clause

asked Aug 3, 2017 in MySQL by anonymous

1 Answer

0 votes

MySQL Distinct Clause

MySQL DISTINCT clause is used to remove duplicate records from the table and fetch only the unique records. The DISTINCT clause is only used with the SELECT statement.

Syntax:

  1. SELECT DISTINCT expressions  
  2. FROM tables  
  3. [WHERE conditions];  

Parameters

expressions: specify the columns or calculations that you want to retrieve.

tables: specify the name of the tables from where you retrieve records. There must be at least one table listed in the FROM clause.

WHERE conditions: It is optional. It specifies the conditions that must be met for the records to be selected.

answered Aug 3, 2017 by anonymous
...