SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Other Forums
 SQL Server 6.5 \ SQL Server 7.0
 Sql query to retrieve corresponding week last year
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

amit82
Starting Member

12 Posts

Posted - 03/07/2007 :  03:46:50  Show Profile  Reply with Quote
Our databse gets uploaded on daily basis
We use excel for reporting cases

I need a sql query to retrieve the following cases:

Those cases which uploaded in the eqivalent week 6 months ago
Those cases which uploaded in the eqivilent week 1 year ago.

So there fore I need 5 day's worth of data on each worksheet.

we have a week index and a month index and a day index dedicated please help

can anybody please help.....

snSQL
Flowing Fount of Yak Knowledge

USA
1837 Posts

Posted - 03/07/2007 :  11:17:08  Show Profile  Reply with Quote
You need to write a query something like this

SELECT <your columns>
FROM <your table>
WHERE <an expression using your columns>

Based on the info you gave that's about as specific as I can be.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000