Group Project 3 Answers

Group Project 3 Answers - 1) SELECT STUDENT.S_ID...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1) SELECT STUDENT.S_ID "Student ID", STUDENT.S_LAST "Name Last", STUDENT.S_FIRST "Name First", FACULTY.F_ID "Faculty ID", FACULTY.F_LAST "Faculty Last" FROM student, faculty WHERE STUDENT.F_ID=FACULTY.F_ID; 2) select faculty.f_id "Faculty ID", concat(concat(faculty.f_last,', '),faculty.f_first) "Summer 2007 Instructors" from faculty, course_section, term where faculty.f_id=course_section.f_id and course_section.term_id=term.term_id and term.term_desc='Summer 2007'; 3) SELECT course.call_id "Course No.", enrollment.grade "Grade" FROM enrollment, student, course, course_section WHERE student.s_last in ('Miller') AND student.s_first in ('Sarah') and student.s_id=enrollment.s_id and course.course_id=course_section.course_id and course_section.c_sec_id=enrollment.c_sec_id; 4) SELECT S_LAST "Last", S_FIRST "First", S_PHONE "Phone" FROM student UNION SELECT F_LAST "Faculty Last", F_FIRST "Faculty First", F_PHONE "Faculty Phone" FROM faculty; 5) select student.s_id "Student ID", concat(concat(student.s_first,' '),student.s_last) "Students Enrolled w/ R Sanchez",
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
enrollment.c_sec_id "Course Section ID"
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

Group Project 3 Answers - 1) SELECT STUDENT.S_ID...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online