An Ode To
Coalesce Coalesce
I must confess
You're my favourite database function
Coalesce
With such finesse
You return the first non-null value in the argument list
Coalesce
You do impress
With the lovely name you've chosen
Coalesce
When I assess
All the other database functions you're always among my favourites
Comments 31
Reply
Reply
i was wicked stoked.
Reply
They're also begging for us to allow inline parameters instead of bound parameters, too. Screw the security concerns and massive bloat that would add to the expression parser!
Reply
It's invaluable in very specific situations. I was wishing for such a function and got partway into coding it before I discovered coalesce years ago, and it has been tru luv ever since.
Reply
SELECT COALESCE(this,that,theother) FROM foo;
as opposed to SELECT this,that,theother FROM foo; and having the client have to do dumb fallback. But that doesn't help if the app also needs to know which column gave the data (which is the case for this app).
I can see how it might be useful in some contexts but I really can't see its value for our clients, so. I think it's more like they're asking for a complete SQL implementation "just in case they need it" when in the context of this system there's no reason they could even pretend to expect that (this is on an embedded system, to start with). Gah.
Reply
Reply
Reply
Reply
tag rather than each panel separated out like it's supposed to be, so there's no way for XML consumers to know where the panels begin and end.
I had emailed it to the ohnorobot contact email address instead of your qwantz one so maybe that is why you never saw it?
Anyway I will forward the message to your qwantz address (goodness, I sent it back in December).
Reply
Reply
Reply
Reply
Love,
An American.
Reply
Reply
Reply
Reply
Leave a comment