Viewing 15 posts - 2,671 through 2,685 (of 3,348 total)
m.bouffard (8/25/2010)
"A clustered index determines the physical order of data in a table. A clustered index is analogous to a telephone directory, which arranges data by last name. Because the...
August 25, 2010 at 11:53 am
I had to laugh when I found out WHY I got this question wrong.
I thought "auto-connect" referred to making a connection to a data source. Not to connecting a task...
August 25, 2010 at 4:20 am
tim.stevens (8/24/2010)
August 24, 2010 at 11:34 am
hrvoje.piasevoli (8/24/2010)
Hi all, played for a while with Hugo's example and ... look what I found :w00t:
Thanks for confirming that this is indeed apparently fixed in SQL 2008.
-- 2 doesn't...
August 24, 2010 at 11:25 am
Michael Poppers (8/24/2010)
paul.knibbs (8/24/2010)
Didn't know ROUND() could do this, but once I looked it up in Books Online it seemed fairly straightforward--I learned something today, which is always nice!
Get ready...
August 24, 2010 at 8:50 am
paul.knibbs (8/24/2010)
Hugo Kornelis (8/24/2010)
Super! Thanks for testing and reporting back here.
Obviously, this weird behaviour that appears to be exclusive to the ROUND() function has been fixed in SQL Server 2008.
Is...
August 24, 2010 at 7:25 am
paul.knibbs (8/24/2010)
Nope, just tested it on a SQL 2008 Express install and it came up with an arithmetic overflow as expected.
Super! Thanks for testing and reporting back here.
Obviously, this weird...
August 24, 2010 at 7:05 am
Jeff Moden (8/24/2010)
Oh jeez.... here we go with bloody semantics again. If data is missing or absent, what value is it, Hugo?
It's not just semantics. This statement is the...
August 24, 2010 at 7:01 am
hrvoje.piasevoli (8/24/2010)
Hugo Kornelis (8/24/2010)
Here is an interesting experiment (works on every client):
SELECT ROUND(789.98,-3) AS WeirdCol
INTO WeirdTable;
go
EXEC sp_help 'WeirdTable';
go
UPDATE WeirdTable
SET WeirdCol = WeirdCol - 0.001;
go
DROP TABLE WeirdTable;
go
Hugo what is the expected...
August 24, 2010 at 6:45 am
martti.laiho (8/24/2010)
August 24, 2010 at 4:21 am
Alex-668179 (8/24/2010)
Yes, I find that a lot of the confusion goes away by not calling NULL a "value" but seeing as a state (or state indicator).
Agreed. I think that the...
August 24, 2010 at 3:51 am
da-zero (8/24/2010)
E.g. I would've liked examples of...
August 24, 2010 at 3:49 am
paulm-771594 (8/24/2010)
August 24, 2010 at 3:25 am
Carlo Romagnano (8/24/2010)
One way to avoid worrying about NULLs is never to use them, always declaring columns as not allowing NULLs and designating default values for "empty" or "unknown". This...
August 24, 2010 at 3:21 am
da-zero (8/24/2010)
I would've liked a paragraph on the behaviour of NULL in COUNT(*) and COUNT(DISTINCT *).
There's not much to say about that, as COUNT(*) does not care if values are...
August 24, 2010 at 3:17 am
Viewing 15 posts - 2,671 through 2,685 (of 3,348 total)