Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

DO ORACLE SQL DEVELOPER CLASS SCRIPT Create table tblStudent ( studentID number(5,2) not null primary key, studentName varchar2(50) not null, email varchar2(50) not null );

DO ORACLE SQL DEVELOPER

CLASS SCRIPT

Create table tblStudent ( studentID number(5,2) not null primary key, studentName varchar2(50) not null, email varchar2(50) not null );

create table tblModules ( mod_id number(5,2) not null primary key, mod_name varchar2(50) not null );

create table tblResults ( result_id int not null primary key, results number(5,2) not null, studentID int not null, mod_id int not null,

CONSTRAINT fk_student FOREIGN KEY (studentID) REFERENCES tblStudent(studentID), CONSTRAINT fk_modules FOREIGN KEY (mod_id) REFERENCES tblModules(mod_id) );

inserts

image text in transcribed

image text in transcribedimage text in transcribed

StudentID StudentName Email Mod_ID Mod_Name 101 JB jb@gmail.com 555 Intro to programming Intro to statistics 102 CL cl@yahoo.com 556 103 AN an@gmail.com 557 Intro to accounting m Result_ID Results Studenti Mod_ID 55 101 557 103 557 85 101 555 3. Create a PL/SQL query to display the count, avg, min, max and sum of the results in the results table. Save your query as qryMockTest3. anonymous block completed MAX RESULT: 85 MIN RESULT: 55 COUNT RESULT: 3 AVG RESULT: 65.67 SUM RESULT: 197 5. Create a PL/SQL query to display the student name with a 10% increase of the result for result id 2.Save your query as qryMockTest5. anonymous block completed STUDENT NAME: AN NEW RESULT: 62.7 StudentID StudentName Email Mod_ID Mod_Name 101 JB jb@gmail.com 555 Intro to programming Intro to statistics 102 CL cl@yahoo.com 556 103 AN an@gmail.com 557 Intro to accounting m Result_ID Results Studenti Mod_ID 55 101 557 103 557 85 101 555 3. Create a PL/SQL query to display the count, avg, min, max and sum of the results in the results table. Save your query as qryMockTest3. anonymous block completed MAX RESULT: 85 MIN RESULT: 55 COUNT RESULT: 3 AVG RESULT: 65.67 SUM RESULT: 197 5. Create a PL/SQL query to display the student name with a 10% increase of the result for result id 2.Save your query as qryMockTest5. anonymous block completed STUDENT NAME: AN NEW RESULT: 62.7

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

Database Theory Icdt 97 6th International Conference Delphi Greece January 8 10 1997 Proceedings Lncs 1186

Authors: Foto N. Afrati ,Phokion G. Kolaitis

1st Edition

3540622225, 978-3540622222

More Books

Students also viewed these Databases questions

Question

What occurs when a business pledges its receivables?

Answered: 1 week ago