Easy Correlated Queries


  • 0
    K

    Easy SFW query.

    select distinct Email
    from Person AS p
    where Id <> ANY(
        select Id
        from Person
        where Email = p.Email)
    

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.