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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Week w year n and week w year n-1 in same query result

Status
Not open for further replies.

hpaille

Programmer
Apr 16, 2003
37
FR
Hi,

I am trying to display in the data from a week in year Y and year Y-1 in order to compare them in a single result:

The week is formatted YYYYWW

Week Income Y Income Y-1
200510 10 15 (results of the week 200410)

How can I do that as the lag function cannot work (years can have 52 or 53 weeks) ?

Oracle 9i.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top