0% found this document useful (0 votes)
0 views

Assignment 9

The document outlines a series of programming assignments involving PL/SQL cursors. Tasks include creating cursors to print employee names and salaries, updating salaries based on conditions, and handling specific employee attributes like department IDs. Each assignment focuses on different aspects of cursor usage in PL/SQL to manipulate and display employee data.

Uploaded by

2303a51709
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Assignment 9

The document outlines a series of programming assignments involving PL/SQL cursors. Tasks include creating cursors to print employee names and salaries, updating salaries based on conditions, and handling specific employee attributes like department IDs. Each assignment focuses on different aspects of cursor usage in PL/SQL to manipulate and display employee data.

Uploaded by

2303a51709
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

ASSIGNMENT-09

-2303A51709

1. Create a cursor that prints EMP_NAME and SALARY for


each employee.

1. Write a PL/SQL block with a cursor to fetch and print


names of employees from department10.
1. Write a block that opens a cursor, fetches one row, prints
EMP_NAME, and closes the cursor.

1. Create a cursor to print names of employees whose


salary is greater than 3000.
1. Update the salary of employees having salary <5000 and
print the count of rows affected using %ROWCOUNT.

1. Use a cursor and print total number of employees using


a counter
1. Write a PL/SQL block with a cursor that prints
EMP_NAMEs having names starting with 'A'.

1. Create a cursor that prints employee names and says ‘No


Dept’ if DEPT_ID is NULL.

1. Create a cursor that prints EMP_IDs which are even


numbers only.

You might also like