r/learnSQL • • Oct 08 '21

SQL Cheatsheet (Basics)

Post image
422 Upvotes

22 comments sorted by

View all comments

5

u/hshighnz Oct 08 '21 edited Oct 09 '21

Hi and thank you for your cheat sheet. Could you maby add window functions to the section of execution order?

2

u/chadbaldwin Oct 08 '21

This, I think "DISTINCT" may also be useful to throw in there.

I see people mix up the order of DISTINCT TOP(N) ROW_NUMBER() OVER... all the time.

1

u/[deleted] Oct 09 '21

Yes I'll try add it in at some point :)