5_output - Sheet1 Page 1 1> Retrieve information(SSN...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Sheet1 Page 1 1> Retrieve information (SSN, first name and last name) about students who took the course &Computer Architecture| . ANS: select distinct student.ssn,student.first_name,student.last_name from student,enrolls,course,section where course.COURSE_ RESULT: SSN FIRST_NAME LAST_NAME--------- -------------------- -------------------- 999112222 John Smith----------------------------------------------------------------------------------- 2> Get the information (SSN, first name and last name) about students who have taken the course ¡ VLSIL. Also get the sectio ANS: select student.ssn,student.first_name,student.last_name,section.sectionno from student,enrolls,course,section where course. RESULT: SSN FIRST_NAME LAST_NAME SECTIONNO--------- -------------------- -------------------- ---------- 888112311 Ahmad Patel 1----------------------------------------------------------------------------------- 3> Get the course names and course numbers which have 2 or more students....
View Full Document

This note was uploaded on 10/26/2009 for the course CSC CSC 134 taught by Professor Jinyin during the Spring '09 term at CSU Sacramento.

Page1 / 3

5_output - Sheet1 Page 1 1> Retrieve information(SSN...

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

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