JPCogAdmin
Programmer
Ok,
I'm back on Oracle after years and want to create a basic package but I'm getting error:
PLS-00103
The code is below:
=======================================================
CREATE OR REPLACE
PACKAGE BODY LIST AS
procedure Get(fac IN table1.FAC_ID%TYPE) AS
declare
c1_rec table1%ROWTYPE;
BEGIN
/* TODO implementation required */
select T.fac_id,T.phone,T.calls
from
(select fac_id, phone, count(*) calls,dense_rank() over(order by count(*) desc) as Rank INTO c1_rec From table1 where fac_id='Western' group by fac_id,phone) T
order by T.calls desc;
END Get;
END LIST;
====================================================
Can someone lead me into the right direction which is where I need to go.
;-)
Thanks.
-J
I'm back on Oracle after years and want to create a basic package but I'm getting error:
PLS-00103
The code is below:
=======================================================
CREATE OR REPLACE
PACKAGE BODY LIST AS
procedure Get(fac IN table1.FAC_ID%TYPE) AS
declare
c1_rec table1%ROWTYPE;
BEGIN
/* TODO implementation required */
select T.fac_id,T.phone,T.calls
from
(select fac_id, phone, count(*) calls,dense_rank() over(order by count(*) desc) as Rank INTO c1_rec From table1 where fac_id='Western' group by fac_id,phone) T
order by T.calls desc;
END Get;
END LIST;
====================================================
Can someone lead me into the right direction which is where I need to go.
;-)
Thanks.
-J