ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Identifying week range by todays date

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> SQL Programming (MS SQL Server, MS Access, MySQL)
View previous topic :: View next topic  
Author Message
werosen1



Joined: 16 Apr 2006
Posts: 2

PostPosted: Mon Apr 17, 2006 12:19 pm    Post subject: Identifying week range by todays date Reply with quote

I'm trying to write an SQL query that identifies today's date, and then provides the date range for that date's week, so I can return all my database

records that fall in that week's date range and display them in my ASP page.

Is there a way to do this?

Regards
Back to top
View user's profile Send private message
paul



Joined: 11 Oct 2004
Posts: 128

PostPosted: Sun Apr 30, 2006 4:49 pm    Post subject: Reply with quote

The SQL statement will be different for different database servers. What database do you use?
_________________
World Countries | Survival Skills
Back to top
View user's profile Send private message
rose



Joined: 21 Feb 2006
Posts: 29

PostPosted: Mon May 01, 2006 5:08 pm    Post subject: Reply with quote

And are you using asp or asp.net?
Back to top
View user's profile Send private message
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Wed May 17, 2006 8:37 am    Post subject: Reply with quote

He can do this directly from SQL, so the technology (ASP or ASP.NET) doesn't really matter.
_________________
Peter
ASP & ASP.NET Articles and Tutorials
Back to top
View user's profile Send private message
James



Joined: 20 Feb 2006
Posts: 24

PostPosted: Sun May 21, 2006 6:59 pm    Post subject: Reply with quote

Can someone post how it would be done using MS SQL?
Its likely he is using that database I would say Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> SQL Programming (MS SQL Server, MS Access, MySQL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group

SQL Tutorial