• neidu3@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    30 days ago

    I haven’t postgres’d in ages, but I’ll give it a shot anyway:

    SELECT name FROM boys WHERE good = true;  
    
      • neidu3@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        30 days ago

        But now for the advanced and important stuff: How can we modify it to also pull the same from the table “girls” in a single query? I like SQL efficiency and inclusivity, and I’m sure half of all dogs agree. (Well, according to my research, all dogs like inclusivity, but only 50% likes SQL efficiency)