Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Datatype 'Date' as clustered Index - next,previous

Author  Topic 

landau66
Yak Posting Veteran

61 Posts

Posted - 2014-01-18 : 11:45:50
Hi everyone,

I have a table where the Primary Key is of datatype DATE. This column is also a clustered index. Since not every day is in this column i am looking for a way to address a date one ( or two, or three) Dates before a given date. Something like:

select * from myTable
where [date] = one record previous to record where date = '22-05-2000'

How is that possible.

Thank you very much in advance
landau

James K
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2014-01-18 : 12:08:39
I think I answered this in this thread http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=190779 If that does not answer your question, please reply?
Go to Top of Page
   

- Advertisement -