February 27, 2006 at 3:44 am
Hi,
Could you tell me how the data is organisd within the data pages when a clustered index keys have NULL values.
i.e are the rows containing the NULL values at the beginning or at the end of the table
Bye
Gabor
February 27, 2006 at 4:02 am
Hi Gabor,
This depends on the order of the clustered index. If it is ascending, the null values will be at the beginning. If it is descending, the null values will be at the end.
February 27, 2006 at 5:29 am
Hi Karl,
Do you know how I can verify it. I suppose also that the data is organised as you told me, but I would like to "see".
I didn't find it in the BOL nor in the book of Kalen Delaney. Maybe I was not searching in the right place.
Bye
Gabor
February 27, 2006 at 5:53 am
Sure,
Just do a select * from
February 28, 2006 at 9:40 am
... doesn't it seem counter productive to have an index where a portion of it may be 'NULL' ???
RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."
March 1, 2006 at 1:02 am
Rudy,
It make sense to have NULL values in a clustered index. Especially when the index is an a date field and I'm doing reange selection based on this date field. When a case closed the close_date field is not NULL otherwise it is NULL.
Bye
Gabor
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply