Logo
Python and Linux: 1991's best inventions.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Order by Memes

Posts tagged with Order by

SQL Time Is Always Wrong Time

Databases Programming Debugging
11 months ago 662.9K views 0 shares
SQL Time Is Always Wrong Time
What happens when a DBA designs a clock? You get Roman numerals in completely random order because SQL queries without proper constraints do whatever they want. Notice how IX (9) is where 4 should be, and V (5) is at 6 o'clock. The comment "It Will Work This Time" is the eternal lie every developer tells themselves before running untested SQL in production. Spoiler: it never does.

Clock But It's SELECT DIGITS FROM NUMBERS ORDER BY DIGIT NAME DESC

Databases Programming
11 months ago 362.7K views 0 shares
Clock But It's SELECT DIGITS FROM NUMBERS ORDER BY DIGIT NAME DESC
OH. MY. GOD. This is what happens when you let a database admin design a clock! The numbers are in complete chaos because some SQL-obsessed maniac decided to ORDER BY DIGIT NAME DESC instead of, you know, ACTUAL NUMERICAL ORDER like a SANE HUMAN BEING! The SQL query literally sorted the digits by their spelled-out names in descending order, so "twelve" comes before "three" which comes before "ten" and so on. Can you imagine trying to tell time on this monstrosity?! It's like asking what time it is and getting back "SELECT CURRENT_TIME FROM REALITY WHERE SANITY = NULL"!

Today's picks

2 Port USB-C KVM Switch 2 Monitors 2 Laptops Dual Monitor KVM USB-C Docking

2 Port USB-C KVM Switch 2 Monitors 2 Laptops Dual Monitor KVM USB-C Docking

Affiliate
$105.99
No Need To Optimize For Memory Lads Just Plant Some Rosemary On Servers

No Need To Optimize For Memory Lads Just Plant Some Rosemary On Servers

Programming
138.9K views 1 year ago
Woman puts an end to the war (Circa 1943)

Woman puts an end to the war (Circa 1943)

Programming
85.8K views 3 years ago