p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   SQL Server ASP (http://p2p.wrox.com/forumdisplay.php?f=101)
-   -   Select Query with dates (http://p2p.wrox.com/showthread.php?t=59578)

mikedeepak June 29th, 2007 01:49 AM

Select Query with dates
 
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




happygv July 12th, 2007 05:34 AM

Quote:

quote: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
What do you mean by that, do you want to do a date range search or just based on start date alone? What date format is that? mm/dd/yy or dd/mm/yy?

_________________________
- Vijay G
Strive for Perfection


All times are GMT -4. The time now is 02:28 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.