
BLOQUES PL/SQL
Publicado por Pepe (1 intervención) el 17/05/2017 04:26:47


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*PRIMERA IMAGEN*/
declare
v1 number;
v2 varchar2(10):=&Ingrese_Cargo;
begin
SELECT sum(salary) INTO v1 FROM employees WHERE job_id=v2;
if(v1<5000)then
dbms_output.put_line('Los salarios de este cargo no superan los 5000 '|| v1);
else if(v1>5000 and v1<10000)then
dbms_output.put_line('Los salarios de este cargo no superan los 10000 '|| v1);
else if(v1>10000)then
dbms_output.put_line('Los salarios son mayores a 10000 '|| v1);
end if;
exception
when no_data_found then
dbms_output.put_line('Codigo de cargo no existe!!');
end;
NO ME SALE ESTE EJERCICIO ME TIRA ERROR :C
HELPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP!!!
Valora esta pregunta


0