|
|
|
|
|
by _a_a_a_
1098 days ago
|
|
I use both in SQL regularly and without any problem, done so for decades. The problem is if you're actually implementing something then those rules you informally understand suddenly start to look less obvious when you try to write them down. Even SQLite got it wrong: . 6. Aggregate Queries Can Contain Non-Aggregate Result Columns That Are Not In The GROUP BY Clause For example to find the highest paid employee: SELECT max(salary), first_name, last_name FROM employee; . https://www.sqlite.org/quirks.html |
|
I don’t know exactly where in the spec it’s defined, though - but I’ve seen people say it was introduced in SQL99.