Write SQL queries to answer the following questions: What are the courses included in the Section table? List each course only once. List all students in alphabetical order by StudentName. List the students who are enrolled in each course in Semester I, 2018. Group the students by the sections in which they are enrolled. List the courses available. Group them by course prefix. (ISM is the only prefix shown, but there are many others throughout the university.)

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter1: Overview Of Database Concepts
Section: Chapter Questions
Problem 6HOA
icon
Related questions
Question

5-43. Write SQL queries to answer the following questions:

  1. What are the courses included in the Section table? List each course only once.

  2. List all students in alphabetical order by StudentName.

  3. List the students who are enrolled in each course in Semester I, 2018. Group the students by the sections in which they are enrolled.

  4. List the courses available. Group them by course prefix. (ISM is the only prefix shown, but there are many others throughout the university.)

5-43. Write SQL queries to answer the following questions:
a. What are the courses included in the Section table? List each course only once.
b. List all students in alphabetical order by StudentName.
c. List the students who are enrolled in each course in Semester I, 2018. Group the students by the sections in which they are enrolled.
d. List the courses available. Group them by course prefix. (ISM is the only prefix shown, but there are many others throughout the university.)
Transcribed Image Text:5-43. Write SQL queries to answer the following questions: a. What are the courses included in the Section table? List each course only once. b. List all students in alphabetical order by StudentName. c. List the students who are enrolled in each course in Semester I, 2018. Group the students by the sections in which they are enrolled. d. List the courses available. Group them by course prefix. (ISM is the only prefix shown, but there are many others throughout the university.)
Problems and Exercises 5-34 O through 5-45 O are based on the class scheduling 3NF relations along with some sample data shown in Figure 5-11
Not shown in
this figure are data for an ASSIGNMENT relation, which represents a many-to-many relationship between faculty and sections. Note that values of the Section No column do
not repeat across semesters.
STUDENT (StudentID, StudentName)
QUALIFIED (FacultyID, CourselD, DateQualified)
StudentID
StudentName
FacultylD
CourselD
DateQualified
38214
54907
Letersky
Altvater
ISM 3112
ISM 3113
9/2008
9/2008
2143
2143
3467
3467
4756
Aiken
Marra
66324
ISM 4212
9/2015
70542
ISM 4930
ISM 3113
9/2016
9/2011
9/2011
4756
ISM 3112
FACULTY (FacultyID, FacultyName)
SECTION (SectionNo, Semester, CourselD)
FacultylD
FacultyName
SectionNo
Semester
CourselD
Birkin
Berndt
Collins
1-2018
1-2018
Il-2018
Il-2018
ISM 3113
ISM 3113
ISM 4212
2143
2712
3467
2713
2714
4756
2715
ISM 4930
COURSE (CourselD, CourseName)
REGISTRATION (StudentID, SectionNo)
CourselD
CourseName
StudentID
SectionNo
ISM 3113
ISM 3112
IŞM 4212
Syst Analysis
Syst Design
Database
Networking
38214
2714
2714
2715
2713
54907
54907
ISM 4930
66324
Figure 5-11 Class scheduling relations (missing ASSIGNMENT)
Transcribed Image Text:Problems and Exercises 5-34 O through 5-45 O are based on the class scheduling 3NF relations along with some sample data shown in Figure 5-11 Not shown in this figure are data for an ASSIGNMENT relation, which represents a many-to-many relationship between faculty and sections. Note that values of the Section No column do not repeat across semesters. STUDENT (StudentID, StudentName) QUALIFIED (FacultyID, CourselD, DateQualified) StudentID StudentName FacultylD CourselD DateQualified 38214 54907 Letersky Altvater ISM 3112 ISM 3113 9/2008 9/2008 2143 2143 3467 3467 4756 Aiken Marra 66324 ISM 4212 9/2015 70542 ISM 4930 ISM 3113 9/2016 9/2011 9/2011 4756 ISM 3112 FACULTY (FacultyID, FacultyName) SECTION (SectionNo, Semester, CourselD) FacultylD FacultyName SectionNo Semester CourselD Birkin Berndt Collins 1-2018 1-2018 Il-2018 Il-2018 ISM 3113 ISM 3113 ISM 4212 2143 2712 3467 2713 2714 4756 2715 ISM 4930 COURSE (CourselD, CourseName) REGISTRATION (StudentID, SectionNo) CourselD CourseName StudentID SectionNo ISM 3113 ISM 3112 IŞM 4212 Syst Analysis Syst Design Database Networking 38214 2714 2714 2715 2713 54907 54907 ISM 4930 66324 Figure 5-11 Class scheduling relations (missing ASSIGNMENT)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
SQL Query
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781337097536
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning