a) Specify the following queries in SQL on the database schema of Figure 1.2. a. Retrieve...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
a) Specify the following queries in SQL on the database schema of Figure 1.2. a. Retrieve the name of each course and the instructor who taught that course. If an instructor taught a course more than one time, remove the redundant information. b. For each section of those courses offered by CS department, retrieve the course number, semester, year, and number of students who took the section. c. For each student who took more than 2 sections, retrieve the name, student number, major of the student and the number of sections taken by the student. STUDENT COURSE SECTION Smith Brown Name Course name Intro to Computer Science Data Structures Discrete Mathematics Database GRADE REPORT PREREQUISITE Section identifier Student number 85 92 102 112 119 135 17 8 Course_number CS1310 CS3320 17 17 8 8 8 8 MATH2410 CS3380 Course_number MATH2410 CS1310 CS3320 MATH2410 CS1310 CS3380 Student number Course_number CS3380 CS3380 CS3320 Class 1 2 Credit hours 4 4 Semester Fall Fall Spring Fall Fall Fall 112 119 85 92 102 135 3 Section identifier Major cs CS 3 Figure 1.2 Example of a simple database Year 07 07 08 08 08 08 Prerequisite_number CS3320 MATH2410 CS1310 Department CS CS MATH CS с A Grade B <<< Instructor King Anderson A Knuth Chang Anderson Stone a) Specify the following queries in SQL on the database schema of Figure 1.2. a. Retrieve the name of each course and the instructor who taught that course. If an instructor taught a course more than one time, remove the redundant information. b. For each section of those courses offered by CS department, retrieve the course number, semester, year, and number of students who took the section. c. For each student who took more than 2 sections, retrieve the name, student number, major of the student and the number of sections taken by the student. STUDENT COURSE SECTION Smith Brown Name Course name Intro to Computer Science Data Structures Discrete Mathematics Database GRADE REPORT PREREQUISITE Section identifier Student number 85 92 102 112 119 135 17 8 Course_number CS1310 CS3320 17 17 8 8 8 8 MATH2410 CS3380 Course_number MATH2410 CS1310 CS3320 MATH2410 CS1310 CS3380 Student number Course_number CS3380 CS3380 CS3320 Class 1 2 Credit hours 4 4 Semester Fall Fall Spring Fall Fall Fall 112 119 85 92 102 135 3 Section identifier Major cs CS 3 Figure 1.2 Example of a simple database Year 07 07 08 08 08 08 Prerequisite_number CS3320 MATH2410 CS1310 Department CS CS MATH CS с A Grade B <<< Instructor King Anderson A Knuth Chang Anderson Stone
Expert Answer:
Answer rating: 100% (QA)
a SELECT DISTINCT COURSEcoursename INSTRUCTORname FROM COURSE INNER JOIN SECT... View the full answer
Related Book For
Operations Management Processes And Supply Chains
ISBN: 9781292409863
13th Global Edition
Authors: Lee Krajewski, Naresh Malhotra, Larry Ritzman
Posted Date:
Students also viewed these algorithms questions
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
A solid of constant density is bounded below by the plane z = 0, on the sides by the elliptical cylinder x 2 + 4y 2 = 4, and above by the plane z = 2 - x. a. Find x and y. b. Evaluate the integral...
-
Your client operates a small telemarketing company out of her home and she has one full-time employee who assists in making phone calls to prospective customers. Her teenage daughter also enters data...
-
Merrill Lynch recently completed a study regarding the size of online investment portfolios (stocks, bonds, mutual funds, and certificates of deposit) for a sample of clients in the 40 up to 50 years...
-
Clarify the difference between risk and regret.
-
You were recently approached by one of your clients, Wendy Wonders, the Chief Financial Officer of Rock Group Limited ( RGL), a Canadian public company with a 31 December year- end. RGL manufactures...
-
. In each case, determine whether or not the point lies on the line. If it does not, give an equation of a plane containing the point and the line. a. (-7, 10,-3) and r (t) = (1 - 4t, 6t - 5, t5) b....
-
Cherry Cotta makes custom ordered clay pots for residential gardens. Below is cost information regarding its latest job. a. Materials were purchased on account. $18,996 purchased b. A materials...
-
Using an example of a bank you are familiar with, discuss how, Web-based electronic banking solutions have eliminated time and distance barriers by attracting worldwide markets.
-
Terminations for ________________ often result from a problem with the projects cost, schedule, or performance. a. convenience b. completion c. default d. confidence
-
What is the role of product innovation and product life-cycle management (PLM) in helping manufacturing companies compete in the global arena?
-
Does the auditor provide feedback on strengths in internal controls or just; weaknesses? Explain.
-
Refer to Question 2.47. What if your aunt instead gave you $100 000 and you were interested in investing this amount in Cafe Revive? Required: Would this change your answers to Question 2.47? Why or...
-
Killweed sells weed killers. It is currently considering importing a weed killer for bindii (Soliva sessilis), a weed commonly found in grass, which produces painful prickly seeds, to replace its...
-
(a) (b) An initial value problem 4er-0.5y:y(0)-2. i) dt i) Approximate y(2) using two-step Euler's method. (3 marks) Given that the exact solution is y=3.0769(ees)+2e05. Calculate the relative error....
-
Construct a 4 x 25 design confounded in two blocks of 16 observations each. Outline the analysis of variance for this design.
-
A work sampling study was conducted to determine the proportion of the time a worker is idle. The following information was gathered on a random basis: a. Based on these preliminary results, what...
-
Darren Mack owns the Gas n Go convention store and gas station. After hearing a marketing lecture, he realizes that it might be possible to draw more customers to his high-margin convenience store by...
-
The town of Lexington purchases gasoline from three vendors to fuel its fleet of municipal vehicles. Eachvendor delivers gasoline in 6,000-gallon quantities. Since vendors must deliver the fuel, a...
-
Design a fast LOT-based filter bank with at least eight sub-bands.
-
Prove the relationship in Equation (9.210). CC2=CC = 0, (9.210)
-
Show that the relations in Equations (9.256)-(9.258) are valid. E(z) = [C3+2 (I - 3)]4. (9.256)
Study smarter with the SolutionInn App