Skip to content
DevMeme
3393 of 7590
Databases Post #3726 · source on Telegram

SQL: The Last Bastion of Acceptable Shouting

Description

This meme utilizes the classic 'The Most Interesting Man in the World' format, featuring a dapper, gray-bearded man in a suit seated at a table with a bottle of Dos Equis beer. The image is overlaid with a punchline in two parts, using a bold, white, all-caps font. The top text reads, 'I DON'T ALWAYS TYPE IN ALL CAPS,'. The bottom text completes the phrase with, 'BUT WHEN I DO, I'M PROBABLY WRITING A SQL QUERY.' The humor is rooted in a long-standing, albeit informal, convention within the developer community to write SQL keywords (like SELECT, FROM, WHERE) in uppercase. This practice is done to improve readability by distinguishing the language's commands from the user-defined table and column names. For experienced developers, especially those with a background in database management or backend systems, this is an instantly recognizable and relatable habit from a bygone era of coding standards that still persists today

Comments

18
Anonymous ★ Top Pick My linter auto-formats my SQL to lowercase. I change it back to uppercase. We've been locked in this passive-aggressive merge conflict for three years
  1. Anonymous ★ Top Pick

    My linter auto-formats my SQL to lowercase. I change it back to uppercase. We've been locked in this passive-aggressive merge conflict for three years

  2. Anonymous

    We don’t uppercase SELECT for readability - we’re just yelling so the database can hear us over the ORM whispering 10,000 tiny queries in production

  3. Anonymous

    The real tragedy isn't typing SELECT * FROM users WHERE 1=1 in all caps - it's explaining to the junior why your 20-year-old stored procedures look like they're SHOUTING at the database while their ORM quietly whispers camelCase sweet nothings

  4. Anonymous

    The irony here cuts deep: we've spent decades arguing about camelCase vs snake_case, tabs vs spaces, and whether semicolons are necessary - yet somehow the entire industry collectively agreed that SQL keywords should be SHOUTED AT in ALL CAPS. It's the one coding convention where looking like you're angry-typing is actually considered professional. Meanwhile, your linter is configured to enforce lowercase everything else, creating a cognitive dissonance so profound that junior devs genuinely wonder if their Caps Lock key is possessed when writing their first JOIN statement

  5. Anonymous

    ORMs whisper in camelCase; grizzled DBAs make their subqueries SCREAM

  6. Anonymous

    SQL is case-insensitive, but on-call humans aren't - uppercasing SELECT is the only optimizer hint code review reliably accepts

  7. Anonymous

    ALL CAPS is how I tell the ORM to step aside - this SELECT is negotiating directly with the optimizer

  8. @RiedleroD 4y

    or a meme

  9. @digital_insanity 4y

    Even it's not required, I prefer to write SQL keywords in caps because readability

    1. @CcxCZ 4y

      Well yeah, that's what people did before syntax highlighting. Many languages of that time period have that. JCL/COBOL, Fortran, flavours of BASIC…

  10. @Roman_Millen 4y

    For the sake of readability, I do the opposite thing: SQL keywords in lowercase, table & column names in uppercase.

    1. @SamsonovAnton 4y

      Are not backticks enough to clearly distinguish table and field names from keywords? (You do use backticks, don't you?)

      1. @Roman_Millen 4y

        I don't, unless I need to do it for some names that collide with keywords. Well different letter cases are far more distinguishable from afar than words in backticks, don't you think?

    2. @qtsmolcat 4y

      I do everything in lowercase lol

  11. @ZgGPuo8dZef58K6hxxGVj3Z2 4y

    Lel

  12. @leastsquares 4y

    i prefer camelcase for readability SeLeCt ToP 2 * FrOm CuStOmErS;

    1. @saidov 4y

      It’s wave case

      1. @leastsquares 4y

        yeah, thnx

Use J and K for navigation