Content Warning

This is not a SFW instance. NSFW communities will be tagged, and efforts will be made to keep SFW communities clean, but proceed at your own comfort level.

Mop Lemmy FYI
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
andioop@programming.dev to Programmer Humor@programming.devEnglish · 11 months ago

Little Timmy Tables

message-square
11
link
fedilink
0

Little Timmy Tables

andioop@programming.dev to Programmer Humor@programming.devEnglish · 11 months ago
message-square
11
link
fedilink
  • NullPointerException@lemmy.ca
    link
    fedilink
    arrow-up
    0
    ·
    11 months ago

    Why would Santa need two separate tables for this?

    • unalivejoy@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      I would make two separate views.

      CREATE VIEW NiceList AS
       SELECT * FROM Children
        WHERE behavior = 'nice' 
         AND parent.income > 40000; 
      CREATE VIEW NaughtyList AS
       SELECT * FROM Children
        WHERE behavior = 'naughty'; 
      
      • NullPointerException@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        11 months ago

        The income is a nice touch.

      • KairuByte@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        0
        ·
        11 months ago

        Why are we using magic strings for behavior?

        • unalivejoy@lemmy.zip
          link
          fedilink
          arrow-up
          1
          ·
          11 months ago

          Feel free to fork my comment.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 237 users / day
  • 3.87K users / week
  • 9.25K users / month
  • 11.8K users / 6 months
  • 1 local subscriber
  • 34K subscribers
  • 901 Posts
  • 8.57K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.20
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org