Query Inception: When Your Query Is So Query It Queries Itself

Query Inception: When Your Query Is So Query It Queries Itself
sql-memes, database-memes, syntax-error-memes, naming-conventions-memes, code-quality-memes | ProgrammerHumor.io

Ah, the classic SQL query written by someone who clearly learned database access from a fortune cookie.

The SQL is backwards—it should be "SELECT * FROM Customers" but they've written "FROM Customers SELECT *".

The real chef's kiss is that this is wrapped in a method called "GetCustomersQuery" inside a class called "Query" which is also creating an object called "query" of type "Query.Query".

It's like naming your dog "Dog" and then calling your dog's puppy "Dog.Dog" and then teaching it a trick called "GetDogTrick()".

Four years of computer science for this masterpiece. 💀

More Like This