Hello,
I am a novice in Oracle sql and would appreciate some assistance with a query.
I currently have a script
SELECT SUM(ad_len)/60,
FROM ad a
where prog_code = 'SM'
and brk_date > '30-Apr-04'
and brk_date < '01-Jun-04'
and brk_time BETWEEN &1 and &2
Rather then having to input values each time for each row to be retrieved (eg 0900 for 1 and 1000 for 2). Can the above query be best done by PL/SQL or indeed SQL?? A loop construct??
Thanks in advance.
I am a novice in Oracle sql and would appreciate some assistance with a query.
I currently have a script
SELECT SUM(ad_len)/60,
FROM ad a
where prog_code = 'SM'
and brk_date > '30-Apr-04'
and brk_date < '01-Jun-04'
and brk_time BETWEEN &1 and &2
Rather then having to input values each time for each row to be retrieved (eg 0900 for 1 and 1000 for 2). Can the above query be best done by PL/SQL or indeed SQL?? A loop construct??
Thanks in advance.