Viewing 15 posts - 376 through 390 (of 8,731 total)
August 1, 2018 at 7:58 am
This would work if you always have contiguous dates. Otherwise, you might need an additional ROW_NUMBER function.
WITH CTE AS(
SELECT *, DATEDIFF(dd, ROW_NUMBER() OVER (PARTITION...
August 1, 2018 at 7:01 am
August 1, 2018 at 6:51 am
July 31, 2018 at 9:34 am
Thank you for taking the time to write the article. I found out about this option last year when Aaron Bertrand wrote about it. If someone wants to read more...
July 31, 2018 at 9:20 am
I'm curious. Who would read a row like that? What is this good for?
There's a good reason for people in Microsoft not trying to deliver a wider row. It's...
July 30, 2018 at 2:29 pm
July 30, 2018 at 1:32 pm
jasona.work - Monday, July 30, 2018 8:16 AMHmm...
Maybe I'm not as critical at work as I like to pretend...
No one is.
One previous...
July 30, 2018 at 9:18 am
You could post a profile at some freelance sites. You should also, at least, post a link to your LinkedIn profile, personal site/blog, or some other place to show your...
July 27, 2018 at 9:17 am
Probably something like this?
WITH CTE AS(
SELECT
CASE
WHEN EntityType = 'A' THEN DataPoint1
WHEN EntityType = 'B'...
July 26, 2018 at 2:04 pm
July 26, 2018 at 12:00 pm
This solution is untested and might not even solve the problem. It's using what should be generic SQL (except for the variables).
The lenght of the code is not the...
July 26, 2018 at 11:16 am
July 26, 2018 at 7:45 am
--Deleted post
July 26, 2018 at 7:26 am
July 25, 2018 at 12:22 pm
Viewing 15 posts - 376 through 390 (of 8,731 total)