Hw2 - 1. Specify the following queries in SQL on the...

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

View Full Document Right Arrow Icon
1. Specify the following queries in SQL on the database schema of Figure 1.2. a. Retrieve the names of all students who study in class 1. b. Retrieve the names of all courses taught by professor Anderson in 07 and 08. c. For each section taught by professor Stone, retrieve the course number, year, and number of students who took the section. d. Retrieve the section identifier and corresponding grade taken by student named Brown. e. Retrieve the total credit hours taken by the student whose name is ‘Brown’ and student number is 8. 2. Write SQL update statements to do the following on the database schema shown in Figure 1.2.(Ignore the relatively constraint) a. Insert two new student <’ppinky’, 35, 1, 'MIS'>, <’chen0394’, 36, 2, 'MIS'> in the database b. Insert a new course <'Knowledge Engineering','CS4399', 3,'CS'> c. Change the major and class of student 'Smith' to HISTORY and 3. d. Delete the record for the course which name is 'Discrete Mathematics'.
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.

This note was uploaded on 01/05/2012 for the course IM 100 taught by Professor Ccc during the Spring '11 term at National Taipei University.

Page1 / 2

Hw2 - 1. Specify the following queries in SQL on the...

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