Question

create a new table that contains the list of all the students and class_descriptions. Include In...

create a new table that contains the list of all the students and class_descriptions. Include In this table the list of all students who are not enrolled in any classes (display no classes). If there are no class descriptions then display ‘no description’ (Use combination of inner join, union and minus) (Note: minus will deal with the students who are not enrolled in any classes)

create new_table as (SELECT fname, lname, NVL(class_description, 'No Description') AS "Class Description" FROM STUDENT st, CLASS cl, STUDENT_CLASS sc WHERE st.ssn = sc.ssn AND sc.class_code = cl.class_code)

UNION

(SELECT ssn FROM STUDENT MINUS SELECT ssn FROM STUDENT_CLASS);

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
create a new table that contains the list of all the students and class_descriptions. Include In...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT