203k views
5 votes
Write SQL queries to answer the following questions: What are the names of the course(s) that student Altvater took during the semester I-2018? List the names of the students who have taken at least one course that Professor Collins is qualified to teach. List the names of the students who took at least one course with ""Syst"" in its name during the semester I-2018.

User Nautilius
by
5.8k points

1 Answer

7 votes

Answer:

See explanations

Step-by-step explanation:

Consider the following Venn diagram to retrieve the name of course that student Altvater took during semester I-2015.

• In above Venn diagram inner Ellipse represent the subquery part, this subquery part select the Student ID from STUDENT table.

• Second sub query is used to determine the SectionNo of all student whose studentID retrived in the first subquery

• Finally the main query displays the CourseName from COURSE table.

Write SQL queries to answer the following questions: What are the names of the course-example-1
Write SQL queries to answer the following questions: What are the names of the course-example-2
User Lindz
by
6.0k points