Hello all -
DB2 8.2
The coverage_code could be Single, Family or Both.
How can I add the code for both ?
I also have another cursor for the employer. The user can enter the employer number or it could be NULL
Here is my SP
Thanks all for help!
DB2 8.2
The coverage_code could be Single, Family or Both.
How can I add the code for both ?
I also have another cursor for the employer. The user can enter the employer number or it could be NULL
Here is my SP
Code:
......
Declare cursor1 cursor with return for
Select
member_ssn
, member_name_first
, member_initial
, member_name_last
, member_sex
--, hire_date
--, last_term_date
, ben_date
, benefit_plan
, end_date
, employer
, empl_name
from umass_empl , elg_summary
where
coverage_code = ( case when ucase(in_coverage) = 'SINGLE' then 'C'else 'A' end )
and ben_date = in_eff_date
and benefit_plan = ucase(in_ben_plan)
and dep_ssn='' and dep_name=''
and employer = empl
order by 1;
declare cursor 2....
.............
Thanks all for help!