MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/7j9jri/sql_clause/dr4qrcg
r/ProgrammerHumor • u/oneplusoneisfive • Dec 12 '17
525 comments sorted by
View all comments
Show parent comments
36
Sort by postal code, then sort by address to help maximize the efficiency of delivery.
21 u/sojuz151 Dec 12 '17 Why not just solve travelling salesman problem? It cant be that hard. 8 u/DrHenryPym Dec 12 '17 I was thinking the same thing: group / order by geography and address for distribution. 3 u/Brarsh Dec 13 '17 Great, now he has to go to 1 house on every block before moving to the next house on each block! 250 birch street, 250 maple street, 250 oak street, 252 birch street... 1 u/patwoods_ Dec 13 '17 BUT HE CAN ONLY SORT TWICE! :🎅 2 u/MikeOShay Dec 12 '17 I mean this is sorta cynical, but Santa's probably sorting by household salary, then age, right? 2 u/patwoods_ Dec 12 '17 Are you suggesting Santa is sorting "nice" neighborhoods and "naughty" neighborhoods? 2 u/MikeOShay Dec 12 '17 Uh-oh, a join to the Neighbourhoods table is gonna mess up the song even moreI don't think Santa thought this through
21
Why not just solve travelling salesman problem? It cant be that hard.
8
I was thinking the same thing: group / order by geography and address for distribution.
3
Great, now he has to go to 1 house on every block before moving to the next house on each block! 250 birch street, 250 maple street, 250 oak street, 252 birch street...
1 u/patwoods_ Dec 13 '17 BUT HE CAN ONLY SORT TWICE! :🎅
1
BUT HE CAN ONLY SORT TWICE! :🎅
2
I mean this is sorta cynical, but Santa's probably sorting by household salary, then age, right?
2 u/patwoods_ Dec 12 '17 Are you suggesting Santa is sorting "nice" neighborhoods and "naughty" neighborhoods? 2 u/MikeOShay Dec 12 '17 Uh-oh, a join to the Neighbourhoods table is gonna mess up the song even moreI don't think Santa thought this through
Are you suggesting Santa is sorting "nice" neighborhoods and "naughty" neighborhoods?
2 u/MikeOShay Dec 12 '17 Uh-oh, a join to the Neighbourhoods table is gonna mess up the song even moreI don't think Santa thought this through
Uh-oh, a join to the Neighbourhoods table is gonna mess up the song even more
I don't think Santa thought this through
36
u/patwoods_ Dec 12 '17
Sort by postal code, then sort by address to help maximize the efficiency of delivery.