The following questions are based on the CLASS SCHEDULING 3NF relations along with some sample data...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The following questions are based on the CLASS SCHEDULING 3NF relations along with some sample data shown in Figure 6-11. Note that values of the SectionNo column do not repeat across semesters. STUDENT (StudentID, StudentName) Student 30214 54907 66324 70542 2143 3467 4756 StudentName Letersky Altvater FACULTY (Faculty D, FacultyName) Faculty D Coursel D ISM 3113 ISM 3112 ISM 4212 ISM 4930 Aken Marra FacultyName Birkin Berndt Collins COURSE (CourselD. CourseName) CourseName Syst Analysis Syst Design Database Networking QUALIFIED (Faculty D, CourselD, DateQualified) Faculty Coursel Date Qualified 2143 2143 3467 3467 4756 4756 ISM 3112 ISM 3113 Student 38214 54007 54907 66324 ISM 4212 ISM 4930 ISM 3113 ISM 3112 FIGURE 6-11 Class scheduling relations (missing ASSIGNMENT) SECTION (Section No, Semester, CourselD) Section No CourselD 2712 2713 2714 2715 Semester 1-2015 1-2015 -2015 11-2015 9/2005 9/2005 9/2012 9/2013 9/2008 9/2008 REGISTRATION (StudentiD, Section No) Section No 2714 2714 2715 2713 ISM 3113 ISM 3113 ISM 4212 ISM 4930 1. (6 pts) For each of the table displayed above, write the SQL statements that will create the table. Use the following information to define your data types : StudentID (integer, primary key) StudentName (25 characters) FacultyID (integer, primary key) FacultyName (25 characters) CourselD (8 characters, primary key) CourseName (15 characters) DateQualified (date) Semester (7 characters) Section No (integer, primary key) 2. (3 pts) Write the SQL code allowing to perform the following operations: a. How would you add an attribute, Department, to the Faculty table? b. How would you remove the Student table? C. How would you change the CourseName field from 15characters to 10 characters? 3. (3 pts) Write SQL commands for the following: a. Create two different forms of the INSERT command to add a student with a student ID of 65798 and last name Lopez to the Student table. b. Now write a command that will remove Lopez from the Student table. c. Create an SQL command that will modify the name of course ISM 4212 from Database to Introduction to Relational Databases. 4. (8pts) Write SQL queries to answer the following questions: a. List the numbers of all sections of course ISM 4212 that are offered during the semester "II-2015." b. List the course IDs and names of all courses that ends with the letters "Analysis" c. List the IDs of all faculty members who are qualified to teach both ISM 4212 and ISM 3113. Make sure to only list one ID for each faculty. d. Modify the query above in part c. so that both qualifications must have been earned after the year 2005. The following questions are based on the CLASS SCHEDULING 3NF relations along with some sample data shown in Figure 6-11. Note that values of the SectionNo column do not repeat across semesters. STUDENT (StudentID, StudentName) Student 30214 54907 66324 70542 2143 3467 4756 StudentName Letersky Altvater FACULTY (Faculty D, FacultyName) Faculty D Coursel D ISM 3113 ISM 3112 ISM 4212 ISM 4930 Aken Marra FacultyName Birkin Berndt Collins COURSE (CourselD. CourseName) CourseName Syst Analysis Syst Design Database Networking QUALIFIED (Faculty D, CourselD, DateQualified) Faculty Coursel Date Qualified 2143 2143 3467 3467 4756 4756 ISM 3112 ISM 3113 Student 38214 54007 54907 66324 ISM 4212 ISM 4930 ISM 3113 ISM 3112 FIGURE 6-11 Class scheduling relations (missing ASSIGNMENT) SECTION (Section No, Semester, CourselD) Section No CourselD 2712 2713 2714 2715 Semester 1-2015 1-2015 -2015 11-2015 9/2005 9/2005 9/2012 9/2013 9/2008 9/2008 REGISTRATION (StudentiD, Section No) Section No 2714 2714 2715 2713 ISM 3113 ISM 3113 ISM 4212 ISM 4930 1. (6 pts) For each of the table displayed above, write the SQL statements that will create the table. Use the following information to define your data types : StudentID (integer, primary key) StudentName (25 characters) FacultyID (integer, primary key) FacultyName (25 characters) CourselD (8 characters, primary key) CourseName (15 characters) DateQualified (date) Semester (7 characters) Section No (integer, primary key) 2. (3 pts) Write the SQL code allowing to perform the following operations: a. How would you add an attribute, Department, to the Faculty table? b. How would you remove the Student table? C. How would you change the CourseName field from 15characters to 10 characters? 3. (3 pts) Write SQL commands for the following: a. Create two different forms of the INSERT command to add a student with a student ID of 65798 and last name Lopez to the Student table. b. Now write a command that will remove Lopez from the Student table. c. Create an SQL command that will modify the name of course ISM 4212 from Database to Introduction to Relational Databases. 4. (8pts) Write SQL queries to answer the following questions: a. List the numbers of all sections of course ISM 4212 that are offered during the semester "II-2015." b. List the course IDs and names of all courses that ends with the letters "Analysis" c. List the IDs of all faculty members who are qualified to teach both ISM 4212 and ISM 3113. Make sure to only list one ID for each faculty. d. Modify the query above in part c. so that both qualifications must have been earned after the year 2005.
Expert Answer:
Answer rating: 100% (QA)
Answer 1 CREATE TABLE STUDENTStudentId integer PRIMARY KEY StudentName varchar25 CREATE TABLE FACULT... View the full answer
Related Book For
Essentials of Database Management
ISBN: 978-0133405682
1st edition
Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman
Posted Date:
Students also viewed these accounting questions
-
The following questions are based on key symptoms (both favorable and unfavorable) of Alibaba Group and underlying causes that affect key symptoms as they are observed in the case. In addition, there...
-
The following questions are adapted from a variety of sources including questions developed by the AICPA Board of Examiners and those used in the Kaplan CPA Review Course to study property, plant,...
-
The following questions are about corporate governance and executive compensation. (a) How does agency theory address the issue of executive compensation? (b) How might stakeholder theory argue...
-
Assume that 3-month Treasury bills totaling $23 billion were sold in $10,000 denominations at a discount rate of 5.200%. In addition, the Treasury Department sold 6-month bills totaling $21 billion...
-
Kraft Foods successfully introduced DiGiorno Pizza into the marketplace in 1996, with first year sales of $120 million, followed by $200 million in sales in 1997. It was neither luck nor coincidence...
-
Construct a frequency histogram for the data. Consider the data in the frequency table, and use these data. Score Frequency 1.............................4 2.............................6...
-
What are the ethical obligations in using social media sites in litigation?
-
Sue Merando is the owner of Merandos Pizza. Merandos is operated strictly on a carryout basis. Customers pick up their orders at a counter where a clerk exchanges the pizza for cash. While at the...
-
The management of Wengel Corporation is considering dropping product B90D. Data from the company's accounting system appear below: Sales Variable expenses Fixed manufacturing expenses Fixed selling...
-
During the month of November, the following transactions occurred. Assignment 1. Record the following transactions in the general journal and post them to the general ledger. 2. Prepare a trial...
-
Of the N2O4 molecules present in a sample of the gas, 12.5% are dissociated into NO2 when equilibrium is established at 25 C. N2O4(g) = 2 NO2(g) AH = 57.2 kJ Will the percent dissociation be greater...
-
What is a semi-fixed cost?
-
Briefly describe how to calculate net present value (NPV), internal rate of return (IRR), and modified IRR (MIRR).
-
Can managers influence their firms operating leverage?
-
What are its deficiencies when used as the primary evaluation tool?
-
What are the benefits of payback?
-
3. What is k after invoking nPrint("A message", k) in the following codes? int k = 3; nPrint("A message", k); a. b. C. d. e. 0 123N None of the above.
-
Use translations to graph f. f(x) = x-/2 +1
-
For every product that has been ordered, display the product ID and the total quantity ordered (label this result TotalOrdered). List the most popular product first and the least popular last.
-
Modify Figure 2-11a to model the following additional information requirements: The training director decides for each employee who completes each class who (what employees) should be notified of the...
-
After completing a course in database management, you are asked to develop a preliminary ERD for a symphony orchestra. You discover the entity types that should be included as shown in Table 2-2....
-
On April 1, Caesar Salad Dressings creates a petty cash fund with an imprest balance of \(\$ 400\). During April, Elise Nelson, the fund custodian, signs the following petty cash tickets: On April...
-
Pendley Productions makes all sales on credit. Cash receipts arrive by mail. Larry Padgitt in the mailroom opens envelopes and separates the checks from the accompanying remittance advices. Padgitt...
-
Suppose that on June 1, Cool Gyrations, a disc jockey service, creates a petty cash fund with an imprest balance of \(\$ 300\). During June, Carol McColgin, fund custodian, signs the following petty...
Study smarter with the SolutionInn App