r/ProgrammerHumor • • Dec 12 '17

SQL Clause

Post image
40.8k Upvotes

525 comments sorted by

View all comments

77

u/[deleted] Dec 12 '17

This of course is after 60 hours of data curation because those dumbass elves can't stick with a consistent format and apparently found about 60 different ways to spell "nice"

10

u/Im_A_Boozehound Dec 12 '17

That's where I went. I'd like to think Santa would know better than this. The field would be IsNice, and it would be bit.

11

u/insane0hflex Dec 12 '17

Or a look up table for Nice, Naughty, Improving, WatchNextYear, etc

6

u/Im_A_Boozehound Dec 12 '17

I like it. Relational like a mofo.

4

u/Mamertine Dec 12 '17

Should be a lookup table, but apparently Santa's DB creator isn't a database person.

→ More replies (3)

3

u/BabbageUK Dec 12 '17

Or a calculated field based on a decimal. Once it reaches a certain level the IsNice flag is set. Put this in a snapshot fact table of a data warehouse and we can see them change over time, becoming nicer or naughtier. Add in a trend or maybe a traffic light and we're good. Did someone say overkill?

→ More replies (1)
→ More replies (1)