Oct 27, 2004 #1 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 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.
Oct 27, 2004 #2 nagornyi MIS Nov 19, 2003 882 US between _date and add_monthsp_date,12) Upvote 0 Downvote
Oct 27, 2004 Thread starter #3 ADB1 Programmer Aug 24, 2001 235 GB I put the sql in and got the following error: ORA-01008: not all variables bound Thanks. Upvote 0 Downvote
Oct 27, 2004 #4 nagornyi MIS Nov 19, 2003 882 US Of course you need to define the parameter before using it. How - depends on the sql client you are using. Upvote 0 Downvote
Of course you need to define the parameter before using it. How - depends on the sql client you are using.