Viewing 15 posts - 2,716 through 2,730 (of 3,348 total)
You make some good points, but there is a reverse side to this. If the developers who write the software know in advance that they'll have to maintain it, you...
August 3, 2010 at 1:35 am
$partacu$ (8/2/2010)
But while using 2 columns with DISTINCT can produce non unique rows (ateleast in one columm...:-))
As long as there is a difference in at least one column, the rows...
August 2, 2010 at 2:18 pm
Good question. I read it twice, thinking it could not be this simple. Then I submitted my answer and found it wasn't.
Thanks for teaching me something new!
August 1, 2010 at 3:38 pm
Tom.Thomson (7/26/2010)
August 1, 2010 at 3:24 pm
Carlo Romagnano (7/27/2010)
Hugo Kornelis (7/26/2010)COUNT(*) returns the number of columns (regardless of values);
That's false: COUNT(*) returns the number of ROWS regardless of of columns. :w00t:
Yes, of course - I typed...
August 1, 2010 at 3:16 pm
A good question, highlighting a very common misconception. I've seen so many people think that there is a way to limit DISTINCT to only some of the SELECTed columns -...
July 26, 2010 at 2:05 pm
magasvs (7/24/2010)
It would be confusing to get this question on interview, is it? I wouldn't know what is the right answer, probably would give two answers 🙂
I would consider it...
July 24, 2010 at 11:25 am
jghali (7/21/2010)
What I was trying to get to is...
Retrieving data from a normal column is much faster then having to calculate the value...
July 22, 2010 at 3:32 pm
I'd call this question a good question, based on bad documentation. BOL is certainly not flawless, but it's the best we have, so let's accept it as a reliable resource...
July 22, 2010 at 3:13 pm
My final comment in this topic, and then I'll respect R.P.'s request.
Jeff Moden (7/19/2010)
ROLLUP
Specifies that in addition...
July 20, 2010 at 4:16 am
Jeff Moden (7/19/2010)
Hugo,The gain is that there is nothing you can naturally order by that will give you the correct original order. 😉
Huh?
USE AdventureWorks2008;
SELECT TerritoryID, GROUPING(TerritoryID),
...
July 19, 2010 at 2:40 pm
SanjayAttray (7/18/2010)
When the length is not specified in a data definition or variable declaration statement, the default length is 1 ----- Didn't knew this. used to give length...
July 19, 2010 at 4:41 am
Viewing 15 posts - 2,716 through 2,730 (of 3,348 total)