Trying to understand “except all” in sql query
问题 I came across this example and I don't understand what it means. (SELECT drinker FROM Frequents) EXCEPT ALL (SELECT drinker FROM Likes); relations: Frequents(drinker, bar), Likes(drinker, beer) What does the ALL do in this case? How is the result different from the query below? (SELECT drinker FROM Frequents) EXCEPT (SELECT drinker FROM Likes); 回答1: The SQL EXCEPT operator takes the distinct rows of one query and returns the rows that do not appear in a second result set. The EXCEPT ALL