Still using Windows 3.1? So why stick to SQL-92? A lot has changed in 30 years. We embrace the standard.

Vienna, Austria
Joined February 2015
This example uses the power horse of the functions that parse JSON in SQL: JSON_TABLE.
2
2
636
Example: division by zero n / d becomes n / NULLIF(d, 0) If d = 0, NULLIF returns NULL instead of the value of d. NULL just propagates through the division. No exception, just a NULL (unknown) result. NULLIF is very well supported, btw. modern-sql.com/caniuse/nulli…
1
2
5
749
SQL's data types CHAR and VARCHAR are about characters. Sounds like a no-brainer, doesn't it? Well, a consequence is that the number in the parenthesis refer to characters, not bytes. Unfortunately, some SQL engines don't get that right—causing major confusion among users.
1
8
13
1,888
SQL's FILTER clause should be easy to implement for every engine. Why is it still not supported widely? Sure it can be emulated easily—and ugly. The value on readability (and learning) is huge. Please vendors: Just get it done. modern-sql.com/feature/filte…
1
8
1
32
4,932
SQL statements can become large-ish. For maintenance, they should be broken down into smaller units one can easily understanding. The WITH clause is an important tool to write literate SQL. modern-sql.com/use-case/lite…
5
27
2,580
If you like Wordle and SQL, then you'll love SQuizL! devgym.oracle.com/pls/apex/f… Show off your SQL-Syntax foo and learn something new every day. By Oracle, thus sometimes proprietary Oracle DB syntax.
6
34
6,293
Replying to @richsoule
For the second example I find the following more beautiful. Besides the solvable compatibility issues the main problem of that is performance due to the inability to use indexes on actors.name for every product I know. Having that said I still find it more beautiful.
2
1
5
580
The OVER clause supports three frame units: ROWS, RANGE and GROUPS. RANGE uses the values of the ORDER BY column to determine which rows fall into the window frame. modern-sql.com/caniuse/over_…
1
8
46
5,739
The WITH clause allows you to write more literate SQL. Meanwhile supported by most SQL dialects. modern-sql.com/use-case/lite…
11
2
46
6,218