A social media post by Santa Claus @Santaclaus@c.im. It says: A valiant effort has been made by Little Tim this year, who for some reason has decided to change his name to Tim); INSERT INTO [NiceList] SELECT * FROM [NaughtyList];- HO HO HO! Nice try Tim. I don't use #SQL, I use several dozen interconnected #Excel spreadsheets, like a professional.
you are viewing a single comment's thread
view the rest of the comments
[–] 112 points 10 months ago (23 children)

Why would Santa need two separate tables for this?

  • source
  • hideshow 23 child comments
  • [–] 105 points 10 months ago* (18 children)

    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'; 
    
  • source
  • parent
  • hideshow 18 child comments
  • [–] 28 points 10 months ago (4 children)

    The poor kids can’t even afford coal and fall through the cracks.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 11 points 10 months ago (3 children)

    Only the nice ones, the naughty poor children get free coal

  • source
  • parent
  • hideshow 3 child comments
  • [–] 6 points 10 months ago (6 children)

    Why are we using magic strings for behavior?

  • source
  • parent
  • hideshow 6 child comments
  • [–] 28 points 10 months ago (2 children)

    Feel free to fork my comment. 

  • source
  • parent
  • hideshow 2 child comments
  • [–] 8 points 10 months ago

    He used to have an is_nice bool but consultants convinced Santa it isn't future proof enough to capture the nuances of kids behaviour in today's world, such as "nice but always is really smug about it". But the consultants kept making PowerPoints instead of updating the backend, so now Santa also has added a new value to behaviour: "consultant-like"

  • source
  • parent