Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Print the names and majors of students who are taking one of the College Geometry courses. (Hint: You'll need to use the like predicate

1. Print the names and majors of students who are taking one of the College Geometry courses. (Hint: You'll need to use the "like" predicate and the string matching character in your query.)

2. For those departments that have no majors taking a College Geometry course, print the department name and the number of PhD students in the department.

Here is the tables...

Student(sid,sname,sex,age,year,qpa)
Dept(dname,numphds)
Prof (pname,dname)
Course (cno,cname,dname)
Major(dname,sid)
Section(dname,cno,sectno,pname)
Enroll(sid,grade,dname,cno,sectno)

Primary Keys = sid, dname, pname, cno, sectno,

Step by Step Solution

3.44 Rating (157 Votes )

There are 3 Steps involved in it

Step: 1

1 SELECT DISTINCT sname major FROM Student Dept Prof Course M... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Probability And Statistics

Authors: William Mendenhall, Robert Beaver, Barbara Beaver

14th Edition

1133103758, 978-1133103752

More Books

Students also viewed these Accounting questions