Thread: Select?
View Single Post
  #1 (permalink)  
Old July 2nd, 2007, 05:36 AM
mikedeepak mikedeepak is offline
Authorized User
 
Join Date: May 2004
Location: chennai, tamil nad, India.
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default Select?

Hi all,
I have doubt in Selecting records from the Table is as

tblName

ID int
  Name varchar(100)
stdate datetime
endate datetime

Now i need to retrive Name from the table by following condtion

if the Start Date is 08/01/07 and the End Date is 09/01/07 the records should be selected from the table on 08/01/07 at 12:00:01AM and should not be selected on 09/01/07 at 11:59:59 PM

Please post ur thoughts/answers.....

Mike

Reply With Quote