Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions