Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment 5 Write the solution in a Notepad or Word file and upload it. Department(department_id, name, no_of_courses); student(std_id, name, cpga, gender, department_id) Write a procedure

Assignment 5

Write the solution in a Notepad or Word file and upload it.

Department(department_id, name, no_of_courses);

student(std_id, name, cpga, gender, department_id)

Write a procedure that will accept a deptartment_id value and a gender value and total_std as parameters and

return the the total number of students with the given gender in that department.

The following conditions are to be treated as exceptions:

- Handle a relevant named exception by displaying a proper message

- If the gender parameter is not f or m. display "The value is invalid"

- Handle the deadlock exception with the code ORA-060 by displaying "deadlock detected"

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2008 Comprehensive Concepts And Techniques

Authors: Gary B. Shelly, Corinne Hoisington

1st Edition

1423927168, 978-1423927167

More Books

Students also viewed these Databases questions

Question

What is the two-class method?

Answered: 1 week ago

Question

2. Why do you think the general manager has this policy?

Answered: 1 week ago

Question

Which are non projected Teaching aids in advance learning system?

Answered: 1 week ago

Question

10. Describe the relationship between communication and power.

Answered: 1 week ago