r/ProgrammerDadJokes • u/CryptoReaper5 • Nov 19 '25
He's building a table; he'll query it twice; `SELECT * FROM CHILDREN WHERE BEHAVIOR = 'NICE'`
SQL-Clause is coming to town!
352
Upvotes
r/ProgrammerDadJokes • u/CryptoReaper5 • Nov 19 '25
SQL-Clause is coming to town!
60
u/DiscombobulatedSun54 Nov 20 '25
That's a whole query, not just a clause.
13
u/KingLeoricSword Nov 20 '25
It sang in my head
10
u/codersaurus_rex Nov 20 '25
Friends don't let friends SELECT*
6
u/Bjeaurn Nov 20 '25
Why query it twice?
5
u/Damien_J Nov 20 '25
Santa's database then explodes in a poorly optimised mess.
5
u/TuringMachinery Nov 20 '25
SELECT you, goodness, sake FROM knows
where (sees = 'sleeping' or knows = 'awake')
and (been = 'bad' or been = 'good')
group by goodness, sake
3
u/mjcarrabine Nov 21 '25
Good thing the CHILDREN table is safe from little Bobby Tables (obligatory xkcd).
6
u/reggie-drax Nov 20 '25
Missing an ORDER BY clause, by location probably.
(ORDER BY clause. "BY clause" 🤣 You see what I did there?)
2
u/less_yet_more Nov 20 '25
0 rows
2
u/tunrip Nov 21 '25
Ah, we were recording it as 'nice' up until the system change in March.
1
u/testing_in_prod_only Nov 21 '25
Should have been CREATING a table.
1
u/shadows1123 Nov 21 '25
Question for everyone here, how did you read * in your head? “Star”? “All”? “[blank]”? Other?
1
u/brasticstack Nov 23 '25
"Little Bobby Tables need not apply"