modern-sql.com

SQL’s ORDER BY Has Come a Long Way (opens in new tab)

Order by Has Come a Long WayLimited support in union, except and intersect legsExpressions must not contain selected columnsThe order by clause is surely one of the best-known SQL clauses. Yet there are a number of common misunderstandings that are worth clearing up. For that, I’ll walk you through the evolution of the order by clause in ISO/IEC 9075-2:2023—that is, the SQL standard.The 1980sIn the beginning,0 the order by clause had several limitations that were lifted later: (1) it could on...

Read the original article
Sign in to keep reading the full article.

Covered in 4 articles

Postgres Weekly·
Feeds
DEV Community·
Discussed on DEV
Feeds
boringSQL·
Discussed on Hacker News and Lobsters
Feeds
View all 4 ›

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help