Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem in Specifying a Date Range

Status
Not open for further replies.

Devaki

Programmer
May 23, 2001
58
US
Hi,

Can anyone help me to find out the problem with this Query that has a date range.

Select a.containername,a.containerid,a.thiscontainerlost,a.status from Container a, ContainerLevel b where a.levelid = b.containerlevelid And a.containername <> a.containerid And b.Containerlevelname = 'Wafer' And
(a.originalstartdate >= '3/1/02' And
a.originalstartdate <= '3/22/02')

I am executing this query through VB and my database is in Oracle.

Thanks
Devaki
 
Do you think that it might want year as 4 digits? Skip,
metzgsk@voughtaircraft.com
 
If you database is in Oracle, you might need to do this...

Select a.containername,a.containerid,a.thiscontainerlost,a.status from Container a, ContainerLevel b where a.levelid = b.containerlevelid And a.containername <> a.containerid And b.Containerlevelname = 'Wafer' And
(a.originalstartdate >= #3/1/02# And
a.originalstartdate <= #3/22/02#)

and don't forget ;
Craig, mailto:sander@cogeco.ca
&quot;Procrastination is the art of keeping up with yesterday.&quot;
I hope my post was helpful!!!
 
hi ,

Both ways does not work. Any other ways to do this?

Devaki
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top