Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 date problem

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-04-01 : 08:07:13
RaviKumar writes "I have one calender table. In that table i already inserted 52 weeks fromdate To todate like this


FiscalYr FiscalWk FromDate ToDate
----------- ----------- ----------- -----------------
2005 01 2004-08-28 2004-09-03
2005 02 2004-09-04 2004-09-10
2005 03 2004-09-11 2004-09-17
2005 04 2004-09-18 2004-09-24

suppose i enterd today's Date in my data form,i want to Wk number automatically from above mentioned table.How can i retrieve this Wk number?

please any one help for query




thanks

ravi"

mr_mist
Grunnio

1870 Posts

Posted - 2005-04-01 : 08:18:06
SELECT FiscalWk from yourtable where yourdate BETWEEN FromDate and ToDate

-------
Moo. :)
Go to Top of Page
   

- Advertisement -