SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 22nd, 2004, 11:44 PM
boo boo is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 18 boo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
find date

The following statement cant select the date i want in asp programme,how can i solve this problem??how the change the date to date format???Thx for help

Select * from [non residential 2004] where (cancel is null or cancel <> '1') and ([Rollout Month] between 1/1/2004 and 1/31/2004)

Reply With Quote
  #2  
Old August 26th, 2004, 06:46 AM
selwonk's Avatar
selwonk selwonk is offline
Contributing User
ASP Free Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2004
Posts: 2,967 selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 13 h 22 m 16 sec
Reputation Power: 104
Hi

What database solution are you using?

MK

Reply With Quote
  #3  
Old August 29th, 2004, 08:48 AM
sudeepkaran sudeepkaran is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 4 sudeepkaran User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile

hi

try this out.
please let me know whether this is working.

Select * from [non residential 2004] where (cancel is null or cancel <> '1') and ([Rollout Month] > to_date(1/1/2004) and ([Rollout Month] < to_date(1/31/2004));



Quote:
Originally Posted by boo
The following statement cant select the date i want in asp programme,how can i solve this problem??how the change the date to date format???Thx for help

Select * from [non residential 2004] where (cancel is null or cancel <> '1') and ([Rollout Month] between 1/1/2004 and 1/31/2004)

Reply With Quote
  #4  
Old August 29th, 2004, 11:15 PM
sudeepkaran sudeepkaran is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 4 sudeepkaran User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i have given the sol but forgot the put hte quotes within the dates. updated query is

Select * from [non residential 2004] where (cancel is null or cancel <> '1') and ([Rollout Month] > to_date('1/1/2004') and ([Rollout Month] < to_date('1/31/2004'));

please let me know whether this worked out.

Quote:
Originally Posted by boo
The following statement cant select the date i want in asp programme,how can i solve this problem??how the change the date to date format???Thx for help

Select * from [non residential 2004] where (cancel is null or cancel <> '1') and ([Rollout Month] between 1/1/2004 and 1/31/2004)

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > find date


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT