|
|
|
|
|
by jacques_chester
4764 days ago
|
|
They're good questions because they go past the two simplest query types: select from ... where ...;
and select from ... join ... where;
Those are the types 99% of programmers who use SQL for simple CRUD apps know. But they come up short for asking more useful business questions.Eyeballing the list, it tests subqueries, GROUP BY, HAVING, OUTER JOIN, IN/NOT IN and SUM. Fairly useful primitives for general query writing. I'd try to add a question that relies on UNION, INTERSECT or EXCEPT. |
|
As shown by codegeek, the 6 questions here can be answered without needing sub-query. Maybe we can add something like "List employees who are not working alone in their department"