Open terrajobst opened 9 years ago
Hmm, is this really required? I mean the ORDER BY works and doesn't hurt (besides perf, eventually), and if the error message would be implemented one could always work around the limitation by specifying the TOP 100 PERCENT clause, so from my point of view this whole additional error message wouldn't add much value to NQuery.
Ported from CodePlex
This query should cause the error message below. If uncommenting the
UNION ALL
the error messages appears.The
ORDER BY
clause is invalid in derived tables, subqueries, and common table expressions, unlessTOP
is also specified.