Viewing 15 posts - 181 through 195 (of 208 total)
Reducing the Strain on Multiple Unpivots - who says you shouldn't read from a physical table?
This variation is very similar to the above. The difference is that this...
March 7, 2010 at 2:02 pm
Multiple Unpivot Variation Using 16 Column Block and 5 Unpivots
I think this is just about my preferred refinement of the multiple unpivot base table approach just now.
It seems to edge...
March 7, 2010 at 4:02 am
Yeh, but it's quite symmetrical, albeit a little taller than the CTE version of the table join!
March 6, 2010 at 9:40 am
Trillion Row Base Table - Pushing Multiple Unpivots to the Limit
So what do you think folks? Will this one go fast?
Sorry Jeff, no cross joins!
WITH cte1 AS
(
SELECT...
March 6, 2010 at 6:28 am
Multiple Unpivots to the 100 Billion Level
This one might go fast too
In this variation 6 unpivots are used to create a base table with 1 million rows.
Just one...
March 6, 2010 at 3:39 am
Cascading Unpivots to the 100 Billion Level
This seems to be a viable approach too. I adjusted my cascading unpivots query to potentially release over a trillion rows (not...
March 6, 2010 at 1:21 am
THE TRILLION
Well the TRILLION did run to completion OK. A little over 69 hours which ain't bad for a modest spec VM with only 2GB RAM. ...
March 5, 2010 at 11:54 am
Cascading Unpivots
Or how about this variation to ratchet things up to the 9 billion level
WITH cte1 AS
(
SELECT A,B,C,O,P,Q FROM
(
SELECT 1 AS A1,1 AS A2,1 AS A3,1 AS A4,1...
March 5, 2010 at 1:28 am
Multiple Unpivots
It occurred to me that an interesting variation of the Gianluca Sartori UNPIVOT method would be to create a base table using multiple unpivots. This particular version...
March 4, 2010 at 12:44 pm
It would have been helpful if you had posted some data
but does this sort of approach help you out?
IF NOT OBJECT_ID('tempdb.dbo.#FOO', 'U') IS NULL
DROP TABLE #FOO
SELECT 'Apple,Banana,Orange,Pineapple,Lemon,pear' AS BulkColumn...
March 4, 2010 at 5:50 am
Yes Mister Magoo that really is a very elegant solution indeed.
I've had a look at comparing against my query and it sure is a close one to call.
Re the TRILLION...
March 3, 2010 at 4:57 am
Tom
I think you'll find my query is written in a different way which speeds it up by a factor of 4.
March 2, 2010 at 8:43 pm
Viewing 15 posts - 181 through 195 (of 208 total)