jarfil•
CASE WHEN NULL=1 THEN
...
CASE WHEN NULL IS NULL THEN

I see they got all their bases covered.

21
basilect•

CAST(5 AS numeric(28,10))

Clearly some software is doing this, but why can't it calculate half of these values itself before generating the SQL?

17
Mouaijin•

Is there another way to write a 5 literal with that type in shorthand? I can't think of one, but my SQL isn't all it could be.

6
thirdegree•

Psql I'm pretty sure you could do 5::numeric(28, 10)

1
jxl180•

Is this fizzbuzz?

9
Farull•

Lol, I would love to see someone come up with this at an interview.

2
imguralbumbot•

^(Hi, I'm a bot for linking direct images of albums with only 1 image)

https://i.imgur.com/63vRQaj.png

^^Source ^^| ^^Why? ^^| ^^Creator ^^| ^^ignoreme ^^| ^^deletthis

7
RavynousHunter•

Looks like something I'd see at work in some ol ad hoc bullshit.

3
Hertz-Dont-It•

Looks as bad as minified jquery

2
digera•

Can you hit that format button for me chief?

2

I think I just had a stroke.

2
iambatmanwastaken•

It's a simple spell, but quite unbreakable.

2
mootinator•

It's an older reference, but it checks out.

2
HerissonMignion•

best username ever

1
Dushenka•

May be auto generated for something where perfomance doesn't matter...

2
[deleted]•

When does performance not matter?

1
thirdegree•

Tuesdays

3
Dushenka•

When you've got a task that runs once a week and takes 10 seconds.

2
recursiveOP•

For ad-hoc queries done for diagnostic purposes.

1
basilect•

The query planner is probably going to optimize most of that away anyway... and it's just arithmetic anyhow.

1