Question
PL/SQL - Create Anonymous Blocks For each question, you must use a cursor, a while loop and an if-then-else. 1. Create an anonymous block that
PL/SQL - Create Anonymous Blocks
For each question, you must use a cursor, a while loop and an if-then-else.
1. Create an anonymous block that will count the number of students whose gr_t1 grade is higher than the average on gr_t1 and display that number.
2. Create an anonymous block that will give display the name of student if the average of his gr_t1 and gr_t2 is greater than the average of his gr_hw and gr_pr.
3. Create an anonymous block that will give display the name of student of the female students.
Tables:
student (std_code , std_fname, std_lname, std_gend, maj_code, std_dob)
grade (std_code, std_fname, std_lname, gr_t1, gr_t2, gr_hw, gr_pr, gr_avg, gr_lg)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started