Skip to content
DevMeme
3642 of 7435
The Primal Urge to Query a Database
Databases Post #3980, on Nov 27, 2021 in TG

The Primal Urge to Query a Database

Description

This meme uses the 'Where Banana?' or 'Monke Where' template, which features three orangutans sitting around a table looking confused and expectant. In this version, the meme is adapted for database developers. The two orangutans on the left are labeled 'SELECT' and 'FROM' respectively. The orangutan on the right is labeled 'WHERE.' The table in the center is labeled 'TABLE.' The humor comes from reducing the fundamental structure of a SQL query (SELECT... FROM... WHERE...) to this primitive, questioning scene. It perfectly captures the feeling of starting a new query, where these three clauses are the essential building blocks you gather before figuring out the details. For experienced developers, it's a funny, low-effort visualization of a daily, almost instinctual task

Comments

12
Anonymous ★ Top Pick This is how the ORM visualizer explains its plan to the database engine before generating 1,500 lines of unoptimized SQL
  1. Anonymous ★ Top Pick

    This is how the ORM visualizer explains its plan to the database engine before generating 1,500 lines of unoptimized SQL

  2. Anonymous

    Somewhere deep inside the ORM, three orangutans politely negotiating around a TABLE are why a simple username comes back wrapped in a CTE, two sub-queries, and existential dread

  3. Anonymous

    After 15 years of writing SQL, you still pause for a microsecond wondering if WHERE comes before or after GROUP BY, then confidently write it correctly while your junior watches, never knowing you just had the same existential crisis you had as an intern

  4. Anonymous

    The eternal philosophical debate: do you mentally parse 'SELECT * FROM users WHERE active = true' in execution order (FROM → WHERE → SELECT) or reading order? Senior DBAs know the query optimizer doesn't care about your feelings, but they'll still spend 20 minutes in code review arguing about whether the WHERE clause 'conceptually' comes before or after the FROM. Meanwhile, the orangutans have already shipped to production with a full table scan

  5. Anonymous

    Humans say SELECT→FROM→WHERE, but the engine starts at the TABLE and prays your WHERE is sargable - otherwise enjoy the full‑table tour

  6. Anonymous

    ORM-generated panel: SELECT and FROM on the sofa, WHERE across the room; the only index is on the coffee table, so Postgres does a seq scan and the on-call gets to JOIN

  7. Anonymous

    The eternal senior dev dilemma: WHERE exactly does WHERE go after one too many ORM abstractions?

  8. @nb30ac 4y

    Sql for monkeys or what? :( i don't understand

    1. @TERASKULL 4y

      where banana meme

      1. ẞonny 4y

        Lol

  9. @energizer91 4y

    monke

  10. @Doogls 4y

    SELECT * FROM fruits WHERE type = "Banana"

Use J and K for navigation