Let us consider the following relational database. Professors(id, fName, IName, ssn, email) Students (id,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Let us consider the following relational database. ■ Professors(id, fName, IName, ssn, email) ■ Students (id, Name, IName, dob, gpa, email) ■ Teaches Courses (number, sectionNo, semester, creditHrs, title, profID) ■CompLanguages(studentID, complanguage) ■ Enrolls(studentID, number, sectionNo. semester, courseGrade) ■ UseGrading Schema(number, sectionNo, semester, cutoff, letterGrade) ■ HasGradingCategoriess (category, weight, mumber, sectionNo, semester) Grading Activites (category, title, maxPoints) Submit(studentID, category, title, point) The primary key for each relation is underlined. The foreign keys for this database are as follows: the column profID of relation Teaches Courses that references table Professors. ■ the column studentID of relation CompLanguages that references table Students, ■ the column studentID of relation Enrolls that references table Students, the columns number, section No, semester of relation Enrolls that references table Teaches Courses, ■the columns number, sectionNo, semester of relation Use Grading Schema that references table TeachesCourses, ■the columns number, sectionNo, semester of relation HasGrading Categoriess that references table Teaches Courses, ■the column category of relation Grading Activites that references table HasGrading Categoriess. ■the column studentID of relation Submits that references table Students, and ■the columns category and tile of relation Submits that references table Grading Activites Task: Write exactly one SQL statement for the following question. Also, the query answers must not contain duplicates, but you should use the SQL keyword distinct only when necessary. Use ecLab.sql to test your code, and its output should be like the one listed here. Otherwise, your SQL code has a logic error(s). Q: Retrieve the course titles offered in Spring 2020, along with their professor's ID. Hints: It can be solved by using one input table. /*************Output*************** Course Title | Professor ID | | Biology I 50783 | Biology II 50783 Chemistry I 50123 Chemistry II 50123 Database I 87654 Database I Lab | 87654 | English I 09785 English II 09785 Calculus I 72121 Calculus I 71376 Calculus II 71376 | Calculus II 72121 12 rows in set (0.002 sec) Let us consider the following relational database. ■ Professors(id, fName, IName, ssn, email) ■ Students (id, Name, IName, dob, gpa, email) ■ Teaches Courses (number, sectionNo, semester, creditHrs, title, profID) ■CompLanguages(studentID, complanguage) ■ Enrolls(studentID, number, sectionNo. semester, courseGrade) ■ UseGrading Schema(number, sectionNo, semester, cutoff, letterGrade) ■ HasGradingCategoriess (category, weight, mumber, sectionNo, semester) Grading Activites (category, title, maxPoints) Submit(studentID, category, title, point) The primary key for each relation is underlined. The foreign keys for this database are as follows: the column profID of relation Teaches Courses that references table Professors. ■ the column studentID of relation CompLanguages that references table Students, ■ the column studentID of relation Enrolls that references table Students, the columns number, section No, semester of relation Enrolls that references table Teaches Courses, ■the columns number, sectionNo, semester of relation Use Grading Schema that references table TeachesCourses, ■the columns number, sectionNo, semester of relation HasGrading Categoriess that references table Teaches Courses, ■the column category of relation Grading Activites that references table HasGrading Categoriess. ■the column studentID of relation Submits that references table Students, and ■the columns category and tile of relation Submits that references table Grading Activites Task: Write exactly one SQL statement for the following question. Also, the query answers must not contain duplicates, but you should use the SQL keyword distinct only when necessary. Use ecLab.sql to test your code, and its output should be like the one listed here. Otherwise, your SQL code has a logic error(s). Q: Retrieve the course titles offered in Spring 2020, along with their professor's ID. Hints: It can be solved by using one input table. /*************Output*************** Course Title | Professor ID | | Biology I 50783 | Biology II 50783 Chemistry I 50123 Chemistry II 50123 Database I 87654 Database I Lab | 87654 | English I 09785 English II 09785 Calculus I 72121 Calculus I 71376 Calculus II 71376 | Calculus II 72121 12 rows in set (0.002 sec)
Expert Answer:
Related Book For
Contemporary Business Mathematics with Canadian Applications
ISBN: 978-0133052312
10th edition
Authors: S. A. Hummelbrunner, Kelly Halliday, K. Suzanne Coombs
Posted Date:
Students also viewed these finance questions
-
Create a scenario within a healthcare organization that would require an improvement team be established to help address the issue. Who do you think should be included as project participants? Why?...
-
Solve the linear equation with the x-intercept method. Check your answer. Approximate the solution to the nearest thousandth whenever appropriate. -1-x = = 0
-
Marti Baron operates a small Web business, The Cannonball, that sells parts, repair kits, books, and accessories to hobbyists who restore antique model trains. Many model train hobbyists and...
-
Acetylene gas and x times theoretical air (x 1) at room temperature and 500 kPa are burned at constant pressure in an adiabatic SSSF process. The flame temperature is 2600 K, and the...
-
Mikes Powersports uses the FIFO inventory method. Mikes Powersports started August with 10 helmets that cost \($54\) each. On August 19, Mikes Powersports bought 15 helmets at \($56\) each. On August...
-
Each autumn, as a hobby, Pauline Spahr weaves cotton placemats to sell at a local craft shop. The mats sell for $ 20 per set of four mats. The shop charges a 10% commission and remits the net...
-
Say whether the l'Hspital's rule applies. If it does, use it to evaluate the given limit. If not, use some other method. (If an answer does not exist, enter DNE.) lim 88 6x+10x - 1 5x2 5x -...
-
Chaim has won $5000 and wants to save it towards buying a house in six years when he finishes his law degree. He has the choice between an account which compounds daily with an APR of 7%, and another...
-
K A universal set U consists of 16 elements. If sets A, B, and C are proper subsets of U and n(U) 16, n(An B) = n(An C) = n(BNC) = 6, n(AnBn C) = 2, and n(A UBU C) = 14, determine each of the...
-
1. Show that 23(4x+4)=4(2-3)+20 2. Show the equation below in a Sigma operator notation: (ay+4)+(ay +5)+ (ay +6) + (ay +7) + (ay +8) + (ay +9)
-
Solve the system by using the inverse of the coefficient matrix. -2x+5y+22=-24 x+y 4z 14 5x+3y = 17
-
Evaluate the following expression for x = 1. 9x + 18 9x
-
Developing New Products View Video Title: IDEO, an Innovative Design Company View Video Title: How to Build Your Creative Confidence (TedTalk) This week we will learn about the new product...
-
1. Use questions 2 and 3 from the second case study (not the group marketing plans) to begin the analysis. If you got them wrong from the first module or assessed out of module I, then segment the...
-
A copper sphere of 10-mm diameter, initially at a prescribed elevated temperature T;, is quenched in a saturated (1 atm) water bath. Using the lumped capacitance method, estimate the time for the...
-
Verify by inputting the various constants that \(R_{\mathrm{G}} T / F\) is equal to \(k_{\mathrm{B}} T / e\).
-
Show from combination of the equation for current and the flux expression that the conductivity of an electrolyte solution is given by \[\kappa=\frac{F^{2}}{R_{\mathrm{G}} T} \sum_{i}^{N} D_{i}...
-
Find the mobility of \(\mathrm{H}^{+}, \mathrm{OH}^{-}\), and other ions from the diffusivity data given in Table 22.1. Table 22.1. Diffusion coefficients of ions in water at 25 C. H+ Na+ K+ Ca+ OH-...
Study smarter with the SolutionInn App