Click here to Skip to main content
15,887,331 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
SQL Programming

JOINs Question

Using the database provided, Write and Execute SELECT statements to get the following information:

Courses - https://i.stack.imgur.com/QZdQx.jpg

Instructors - https://i.stack.imgur.com/7ggnk.jpg[^]

Sections - https://i.stack.imgur.com/6p0LR.jpg

Students - https://i.stack.imgur.com/sBmX1.jpg

StudentSchedule - https://i.stack.imgur.com/cTbrl.jpg

StudentSchedule Part 2 - Imgur: The magic of the Internet[^]

What I have tried:

SQL
SELECT firstname, lastname, ID, CRN 
FROM StudentSchedule.ss
INNER JOIN Students s1 on ss.studentid=s1.id
AND CRN = '30101';


ERROR: JOIN expression not supported
Posted
Updated 6-Nov-18 18:04pm

1 solution

SELECT firstname, lastname, ID, CRN 
FROM StudentSchedule ss
INNER JOIN Students s1 on ss.studentid=s1.id
where CRN like '%30101' and CRN like '30101%'


For MSSQL
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900