I am learning PL/SQL these days and currently working with Procedures and exceptions using oracle HR schema.
Here is my simple procedure.
create or rep
to do so you need to use
IF SQL%ROWCOUNT = 0 THEN RAISE no_delete; END IF;
and define your