ITEC 3220 Lecture Notes - Lecture 1: Cross Product, Cosc

12 views2 pages
Ambassador badge icon
13 Dec 2021
Course
Professor

Document Summary

1 - find the ids and names of students who have been registered for itec or cosc program. We don"t have distinct because union eliminates duplicates, otherwise use all. 2 find the ids and names of students who have been registered in both itec and cosc courses. 3 find the sid of students who have been registered for itec courses, but not cosc courses. Select sid, sname from student natural join transcript natural join course where pcode = 4 find ids of students who are younger than 24 and are enrolled in cosc courses. 5 find the ids and names of students who have been enrolled in at least two courses. Cross product of two identical instances of the table transcript, use qualification to select same student id but different course code then we need to join this result with table student. Select distinct s. sid, s. sname from student s join transcript t1 on s. sid = t1. sid join transcript t2.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions