1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[SQL] How to select all attributes (*) with distinct values in a particular column(s)?

Discussão em 'Outras Linguagens' iniciado por Stack, Setembro 3, 2021.

  1. Stack

    Stack Membro Participativo

    Here is link to the w3school database for learners:

    W3School Database

    If we execute the following query:

    SELECT DISTINCT city FROM Customers

    it returns us a list of different City attributes from the table.

    What to do if we want to get all the rows like that we get from SELECT * FROM Customers query, with unique value for City attribute in each row.

    Continue reading...

Compartilhe esta Página