13 Comments

    The SQL DISTINCT Keyword is used in conjunction with SELECT statement to eliminate all the Duplicated records and fetching only unique records.

    SELECT DISTINCT column_name1, column_name2,
    from table_name
    WHERE [condition];

    select distinct ID, name,address
    from Customers
    where contry=”mexico”;

    DISTINCT IS USED TO AVOID DUPLICATE VALUES.

    SELECT DISTINCT CITY FROM CUSTOMERS;

    DISTINCT is to avoid duplicate values

    Select DISTINCT city FROM Customers

    select distinct city from customers;

    The DISTINCT keyword can be used to return only distinct (different) values.
    select distinct city from customers;

    the distinct keyword is used to avoid repeatative records.

    select distinct city from customers;

    select distinct city from customers;

    distinct is used so multiple’s dont repeat

    The SQL Distinct clause is used to remove duplicates from the result set of a select statement.
    SELECT DISTINCT expressions FROM tables WHERE condition;

    The SELECT DISTINCT statement is used to return only distinct values.
    Select DISTINCT city FROM Customers

    The SELECT DISTINCT is used to avoid duplication of records.

    SELECT DISTINCT name from customers where City=London;

    we need distinct to return different value and eliminate the duplicate from rows
    SELECT distinct City from Customers;

    Fetching unique records and eliminating duplicate recordsSELECT DISTINCT City FROM Customers

Leave a Reply

Loading Questions

If you are facing any issue like can not see video so please login into Google with email what you forwarded to us Google Login or mail to administrator qatraining@infotek-solutions.com