Quantcast
Channel: A bit of this, a bit of that…
Viewing all articles
Browse latest Browse all 10

The Intuitive Naming Awards…

$
0
0

I found myself needing to subtract a number of days from a date today in SQL Server. I couldn’t think what the function name was that would do this for me so I speculatively typed in DATESUBTRACT, which obviously didn’t work as there is no such function.

So, I had a shufty around the good ol’ Internet and what did I find?

The function I needed to use to subtract from a date was… yes, you guessed it…

DATEADD

I believe the American phrase ‘go figure’ would be appropriate in this instance…


Viewing all articles
Browse latest Browse all 10

Trending Articles