Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the responsive-lightbox domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the hueman domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/wp-includes/functions.php on line 6114
Distinct Clause in SQL - Testingpool

Distinct Clause in SQL

Distinct Clause in SQL is used to fetch only unique values and remove the duplicate values from the result.

Key – Points :

The changes made by Distinct Clause are not permanent and are not written on disk.These changes are temporarily done in buffer.

Distinct Clause is used in SELECT Statement.

Distinct Clause can be applied to single column or combination of columns.

Syntax :

Distinct Clause for a single column :

SELECT DISTINCT(<Col>) FROM <Tablename>;

Brackets are optional.

Distinct Clause when applied to a single column fetc

Distinct Clause for a multiple columns :

SELECT  DISTINCT  <Col 1> , <Col 2 >….<Col n>  FROM <Tablename>;

Avatar photo

Shikha Katariya

Shikha

You may also like...