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.
Author |
Topic |
anupalavila
Yak Posting Veteran
56 Posts |
Posted - 2008-12-02 : 04:23:53
|
I have a table with 3 fields Id,datafrom and dateTo how can I know the Id of a given date which falls between datefrom and dateTo for the dateId datefrom dateTo1 2008-11-1 00:00:00.000 2008-11-3 00:00:00.0002 2008-11-5 00:00:00.000 2008-11-7 00:00:00.0003 2008-11-9 00:00:00.000 2008-11-11 00:00:00.000if I enter date as 2008-11-10 00:00:00.000 I could get the Id 3Thanks and Regards Anu Palavila |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-12-02 : 04:25:18
|
Where @date between datefrom and dateToMadhivananFailing to plan is Planning to fail |
|
|
anupalavila
Yak Posting Veteran
56 Posts |
Posted - 2008-12-02 : 04:50:56
|
Thanks for your valuable replayThanks and Regards Anu Palavila |
|
|
|
|
|