Viewing 15 posts - 106 through 120 (of 173 total)
Jeff Moden (6/6/2013)
As for why the questions aren't more difficult, someone in...
June 7, 2013 at 12:55 am
ScottPletcher (6/6/2013)
Sorry: middle value.So, if the values were 10, 50, 100: 10 is min, 100 is max, 50 is mid.
What's the solution then?
June 6, 2013 at 3:33 pm
Sean Lange (6/6/2013)
MID?
Yeah, the Q as a whole is a bit meh. I assume he means AVG (to go with the MIN/MAX functions) which I don't see as a very...
June 6, 2013 at 3:31 pm
Sean Lange (6/6/2013)
You in Kansas too?
Nope. The old country 😛
June 6, 2013 at 1:03 pm
Lynn Pettis (6/6/2013)
I have written it manually so many times I have it committed to memory.
I wouldn't have the need to use it that much & only have about 256K...
June 6, 2013 at 12:55 pm
Sean Lange (6/6/2013)
June 6, 2013 at 12:48 pm
Sean Lange (6/6/2013)
June 6, 2013 at 12:31 pm
Jeff Moden (6/6/2013)
June 6, 2013 at 11:52 am
Sean Lange (6/6/2013)
But what do you mean by "But then the iztec way avoids disk reads"? Do you mean by creating the tally table on the fly?
Yes, according to the...
June 6, 2013 at 11:44 am
Sean Lange (6/6/2013)
iztec?
itzik -_
June 6, 2013 at 8:32 am
Sean Lange (6/6/2013)
Dird (6/5/2013)
I don't have to create this every time I need to use it. I keep it as a permanent table at all times.
But then the iztec way...
June 6, 2013 at 8:16 am
Luis Cazares (6/5/2013)
Simpler code and no RBAR (hidden or explicit)
WITH CTETally(n) AS(
SELECT TOP 100 ROW_NUMBER() OVER( ORDER BY object_id)
FROM sys.all_columns
Yep that's how I was going to do it in the...
June 5, 2013 at 11:31 pm
Lynn Pettis (6/5/2013)
Actually, something more like this:
Seems more complex/messy. I think I'll remember my way in case I have a DBA interview (chance to see how little I know about...
June 5, 2013 at 4:25 pm
Luis Cazares (6/5/2013)
You'll be surprised, but programming isn't something you can just learn in books, it requires special learning capabilities.
They can if they read TeachFirst Design Patterns (applies to...
June 5, 2013 at 4:22 pm
Sean Lange (6/5/2013)
Dird (6/5/2013)
I would say that is a loop. A tally table can do this quite easily though.
But then you have to create some pointless table and populate it....
June 5, 2013 at 4:01 pm
Viewing 15 posts - 106 through 120 (of 173 total)