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

Rolling 12 months

Status
Not open for further replies.

ADB1

Programmer
Aug 24, 2001
235
GB
I am trying to get the oracle sql to enable me to calculate a rolling 12 months worth of data from a date.

i.e. Start_date BETWEEN 1/1/04 AND 1/1/05 ......but I want the dates to be dynamic.

Can this be done?

Thanks in advance,

Adam.
 
I put the sql in and got the following error:

ORA-01008: not all variables bound

Thanks.
 
Of course you need to define the parameter before using it. How - depends on the sql client you are using.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top