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 query using SET operator

Discussão em 'Outras Linguagens' iniciado por Stack, Janeiro 27, 2021.

  1. Stack

    Stack Membro Participativo

    Using a SET command, show all the countries in region 1 that do not have a location. Display only the country_id.

    This is my query and it's wrong. I can't figure it out.

    SELECT c.country_id
    FROM Countries c
    WHERE r.region_id = 1
    MINUS
    SELECT c2.country_id
    FROM Countries c2
    WHERE l.location_id IS NULL;


    [​IMG]

    Continue reading...

Compartilhe esta Página