naina dbms 4
naina dbms 4
EXPERIMENT: 1.4
Objectives :
CODE :
COMMIT;
SET SERVEROUTPUT ON;
DECLARE
CURSOR patient_cursor IS
SELECT PatientID, Name, Age, BillAmount FROM Patients
WHERE BillAmount > 4000;
OUTPUT:
Q2: A company manages employee salary details:
CODE :
CREATE TABLE Employee
( EmpID VARCHAR2(10),
Name VARCHAR2(50),
Salary NUMBER
);
COMMIT;
FROM Employee
OUTPUT:
Q3: Create a procedure IncreaseSalary to increase the salary of "Meera" by 5000.
CODE :
COMMIT;
END;
OUTPUT:
Learning Outcomes: