
Concept explainers
Below is part of a Student
Student (studNo, studName, address, mobileNo)
Registration (studNo, courseNo, regDate, semester, session)
Course (courseNo, courseName, creditHour, level)
Project (projNo, projName, courseNo)
Assignment (projectNo, studNo, startDate, dueDate, hoursSpent)
INSERT INTO STUDENT VALUES (175,'Ali Ahmad','10 jalan Bukit Bintang','019-123');
INSERT INTO STUDENT VALUES (176,'Hanna Syamil','32A Jalan Danau Kota','012-234');
INSERT INTO STUDENT VALUES (182,'Ibnu Hassan','19 Jalan Kota Raya','011-345');
INSERT INTO STUDENT VALUES (183,'Aliya Hamidi','233 Jalan Matahari ','013-456');
INSERT INTO STUDENT VALUES (184,'Kayla Adila','98 Jalan Enau','018-567');
INSERT INTO REGISTRATION VALUES (175,1100,'5/SEP/19',1,'2019/2020');
INSERT INTO REGISTRATION VALUES (175,1103,'3/SEP/19',2,'2019/2020');
INSERT INTO REGISTRATION VALUES (176,1103,'7/SEP/19',2,'2019/2020');
INSERT INTO REGISTRATION VALUES (182,1100,'2/SEP/19',1,'2020/2021');
INSERT INTO REGISTRATION VALUES (182,1103,'6/SEP/19',2,'2020/2021');
INSERT INTO REGISTRATION VALUES (183,1102,'4/SEP/19',2,'2020/2021');
INSERT INTO COURSE VALUES (1100,'
INSERT INTO COURSE VALUES (1103,'DATABASE',3,1);
INSERT INTO COURSE VALUES (1707,'MATHEMATICS',3,1);
INSERT INTO COURSE VALUES (2302,'WEB TECHNOLOGIES',3,2);
INSERT INTO COURSE VALUES (3102,'DATA WAREHOUSING',3,3);
INSERT INTO PROJECT VALUES (11001,'Tic Tac Toe',1100);
INSERT INTO PROJECT VALUES (11002,'Word Generator',1100);
INSERT INTO PROJECT VALUES (11031,'eZakat',1103);
INSERT INTO PROJECT VALUES (17071,'Stochastic BioNet',1707);
INSERT INTO PROJECT VALUES (17072,'Ensemble Kalman Filter',1707);
INSERT INTO ASSIGNMENT VALUES (11001,175,'01/OCT/17','30/NOV/17',10);
INSERT INTO ASSIGNMENT VALUES (11001,182,'01/OCT/18','30/NOV/18',9.5);
INSERT INTO ASSIGNMENT VALUES (11031,175,'01/MAR/18','30/APR/18',8);
INSERT INTO ASSIGNMENT VALUES (11031,176,'01/MAR/18','30/APR/18',9);
INSERT INTO ASSIGNMENT VALUES (11031,182,'01/MAR/19','12/APR/19',8.5);
QUESTION :
1. Write a PL/SQL PROCEDURE that will list the project names given the course ID.
2. Call the procedure from an anonymous block. Allow the user to enter the course ID (courseno)


Step by stepSolved in 4 steps with 2 images

- The following fields are presented in the table: Member Last Name, MemberFirstName, Street, City, State, ZipCode and MemberFee. The table contains 75,000 documents. How would you build indexes for the table and why would you create these indexes?arrow_forwardAccess Assignment Problem: JMS TechWizards is a local company that provides technical services to several small businesses in the area. The company currently keeps its technicians and clients’ records on papers. The manager requests you to create a database to store the technician and clients’ information. The following table contains the clients’ information. Client Number Client Name Street City State Postal Code Telephone Number Billed Paid Technician Number AM53 Ashton-Mills 216 Rivard Anderson TX 78077 512-555-4070 $315.50 $255.00 22 AR76 The Artshop 722 Fisher Liberty Corner TX 78080 254-555-0200 $535.00 $565.00 23 BE29 Bert's Supply 5752 Maumee Liberty Corner TX 78080 254-555-2024 $229.50 $0.00 23 DE76 D & E Grocery 464 Linnell Anderson TX 78077 512-555-6050 $485.70…arrow_forwardHaving this information. StudentsAttribute Name Data TypeStudentID char(11)FirstName varchar(20)LastName varchar(20)Gender char(1)DateofBirth date CoursesAttribute Name Data TypeCourseCode varchar(6)CourseName varchar(70)Level char(2)Credits int RegistrationAttribute Name Data TypeStudentID char(11)CourseCode varchar(6)Grade decimal(2, 1) Write SQL code to: 1. How many courses are there on each level? 2. What is the average grade of courses that have been taken by the student with student ID 861103-2438? 3. Which students (studentID only) have the highest grade for the course ‘CS052’? 4. Find the courses (course codes only) that have been taken by both the student 861103-2438 and the student 123456-0980.arrow_forward
- Access: Tables and Controlsarrow_forwardAlternate keys: Identify at least five keys (not already listed as PK or FK) needed by end users. These indexes would be considered Alternate or Secondary keys and are mostly used for queries and quick reporting. They may contain multiple columns.arrow_forwardUntil a file signature analysis is run, EnCase relies on the ______ to determine its file type. header extension database acquisition hash libraryarrow_forward
- SQL DML/DDL There are five tables describing employees of a company, departments, buildings, which department(s) an employee works in (and a percentage of the time for each), and in which building an employee works (an employee may have more than one office). The primary key of each table is the attribute(s) in capitals and underlined. The foreign keys are in italics. Other attributes are not necessarily unique.Employee (EID, Ename, Salary, Start_Date, End_Date)Building (BID, Bname, Address)Department (DID, Dname, Annual_Budget)In_Department (EID, DID, Percentage_Time)In_Building (EID, BID)Write the SQL statements for the following.1. Find the names of Departments where NO employees work. 2. For employees who are still working in the company, end date has no value (empty). For those who have left the company and have end date values, show their names and the duration of their employment in years. 3. Find the names of buildings where more than 50 employees work. 4. The tables have…arrow_forwardDatabase sql 1-Write the syntax to create an object table called people using people_typearrow_forwardHaving this information. StudentsAttribute Name Data TypeStudentID char(11)FirstName varchar(20)LastName varchar(20)Gender char(1)DateofBirth date CoursesAttribute Name Data TypeCourseCode varchar(6)CourseName varchar(70)Level char(2)Credits int RegistrationAttribute Name Data TypeStudentID char(11)CourseCode varchar(6)Grade decimal(2, 1) Write SQL code to: 1. What are the student ID, the names, and birthday of the female students who were born before the last day of 1992? 2. How many students are registered in the course “PHY210”? 3. How many courses are offered by the department of Computer Science (i.e. course codes CS***)? 4. Which course(s) (couseCode and courseName) of level G1 give 5 credits?arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





