Question: 1. CREATE TABLE DBUSER( USER ID USERNAME AGE STATE PRIMARY KEY USER_ID) NUMBER (5) NOT NULL, VARCHAR2 (20) NOT NULL, NUMBER (3) NOT NULL VACHA

 1. CREATE TABLE DBUSER( USER ID USERNAME AGE STATE PRIMARY KEY

1. CREATE TABLE DBUSER( USER ID USERNAME AGE STATE PRIMARY KEY USER_ID) NUMBER (5) NOT NULL, VARCHAR2 (20) NOT NULL, NUMBER (3) NOT NULL VACHA R2 (20) Insert at least 5 rows. Write the following procedures inlPLSQL. Please take snapslhots showing that your code works. 3. Add a new user: Get the following details from the user: UserID, Username, Age and State and insert a new row. 4. Delete an existing user: Get the UserID from the user and delete the row. 5. Search for a username based on user id Hint: Use Implicit Cursor): Get the id from the user and output the name 6. List usernames based on a given state (Hint: Use Explicit Cursor): Get the state from the user and output the list of usernames from that state. (NOTE: Please make sure that there are atleast 2 users from each state)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!