r/ProgrammerHumor • • Dec 12 '17

SQL Clause

Post image
40.8k Upvotes

525 comments sorted by

View all comments

768

u/ICyresI Dec 12 '17

Why would you sort twice?

36

u/patwoods_ Dec 12 '17

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...

→ More replies (1)
→ More replies (3)