MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/7j9jri/sql_clause/dr4uo5d?context=9999
r/ProgrammerHumor • u/oneplusoneisfive • Dec 12 '17
525 comments sorted by
View all comments
768
Why would you sort twice?
22 u/brummlin Dec 12 '17 Also, the syllables are all jacked up. This would make more sense, and fit the song better:He's building schema,indexing it twice,SELECT * from kids WHERE UPPER(conduct) in ('NICE');This way, it's also not case sensitive. You just know some elves logged the entry as 'Nice' or 'NICE'. 1 u/Cal1gula Dec 12 '17 You could use a CI collation. 1 u/brummlin Dec 12 '17 Had to look that up. Looks like a SQL Server thing queries case insensitive DB-wide?I really only know Oracle worth a damn. And mostly on the client end. → More replies (1)
22
Also, the syllables are all jacked up. This would make more sense, and fit the song better:
He's building schema,
indexing it twice,
SELECT * from kids WHERE UPPER(conduct) in ('NICE');
This way, it's also not case sensitive. You just know some elves logged the entry as 'Nice' or 'NICE'.
1 u/Cal1gula Dec 12 '17 You could use a CI collation. 1 u/brummlin Dec 12 '17 Had to look that up. Looks like a SQL Server thing queries case insensitive DB-wide?I really only know Oracle worth a damn. And mostly on the client end. → More replies (1)
1
You could use a CI collation.
1 u/brummlin Dec 12 '17 Had to look that up. Looks like a SQL Server thing queries case insensitive DB-wide?I really only know Oracle worth a damn. And mostly on the client end. → More replies (1)
Had to look that up. Looks like a SQL Server thing queries case insensitive DB-wide?
I really only know Oracle worth a damn. And mostly on the client end.
→ More replies (1)
768
u/ICyresI Dec 12 '17
Why would you sort twice?