Question: 1 . Create a PL / SQL block to declare a cursor to select last name, first name, salary, and hire date from the EMPLOYEE
Create a PLSQL block to declare a cursor to select last name, first name, salary, and hire date from the EMPLOYEE table.Retrieve each row from the cursor and print the employees information if the employees salary is greater than $ and the hire date is before DECexplicit cursor problemCreate a PLSQL block that declares a cursor.Pass a parameter to the cursor of the type that is the same as the Salary column in Employee table to the cursor.Open the cursor with a value for the parameter.Retrieve information into the cursor for a salary higher than the parameter value.Use a loop to print each employees information from the cursor cursor with parameter problemCreate a PLSQL block that declares a cursor to update salaries of employees.Retrieve each row from the cursor by using for loopAlter rows for department id and during this time, lock related rows.Control if salary of the employee is less than give raise. If salary of employee is greater than give raise.Display old salaries and new salaries explicit cursor problemCreate a PLSQL block that satisfies given properties below.Retrieve qualification id as a substitution variable.By using given qualification id display name, surname, salary, and qualification id of employees.Handle NODATAFOUND and TOOMANYROWS exceptions.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
