Write a PL/SQL block to display the details of five employees who are getting the highest salary (table name is Employee) Is this how you do it??
DECLARE
Cursor C is select * from Employee ORDER BY salary DESC;
Edet C%ROWTYPE;
BEGIN
Open C;
Loop
fetch C into Edet;
EXIT WHEN C%ROWCOUNT == 5;
DBMS_OUTPUT.PUT_LINE(Edet);
end loop;
Close c;
END;