Viewing 15 posts - 1,156 through 1,170 (of 1,988 total)
I would imagine returning 4 million + rows would be slow with or without the lookups.
February 8, 2017 at 1:00 pm
Well how big are the lookup tables and how many of them are there?
One option is to store the cleaned values on the base table and have the...
February 8, 2017 at 12:12 pm
Something like this?
WITH TEMP_CTE AS(
SELECT *, LAG(DateTimeStamp, 1) OVER(PARTITION BY UID ORDER BY DateTimeStamp ASC) AS PREVIOUS_DATE FROM #test
)
SELECT UID, DateTimeStamp, PREVIOUS_DATE, DATEDIFF(hour,...
February 7, 2017 at 11:40 am
February 7, 2017 at 7:48 am
February 6, 2017 at 8:52 am
I want the import/export wizard to actually work properly all the time. It's awesome how choosing write your own query messes up consistently.
February 3, 2017 at 8:30 am
Hmm.... well in some cases they're not the right tool for the job, I wouldn't call that a disadvantage so much as a use the tool for the job though.
February 3, 2017 at 8:09 am
February 2, 2017 at 12:45 pm
February 2, 2017 at 9:07 am
February 1, 2017 at 12:32 pm
Yes the union will work, just the union without a union all will do a distinct on the entire result set.
February 1, 2017 at 11:45 am
February 1, 2017 at 8:24 am
January 31, 2017 at 1:28 pm
Viewing 15 posts - 1,156 through 1,170 (of 1,988 total)