5_output - 5_output 1> Retrieve information (SSN, first...

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

View Full Document Right Arrow Icon
5_output 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_NAME='Comp_Architecture' and student.ssn=enrolls.ssn and enrolls.courseno=section.courseno and section.courseno=course.courseno; 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 ‘VLSI’. Also get the section number in which they have enrolled in the course. ANS: select student.ssn,student.first_name,student.last_name,section.sectionno from student,enrolls,course,section where course.COURSE_NAME='VLSI' and student.ssn=enrolls.ssn and enrolls.courseno=section.courseno and section.courseno=course.courseno; RESULT: SSN FIRST_NAME
Background image of page 1

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

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

Page1 / 3

5_output - 5_output 1> Retrieve information (SSN, first...

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