SQL Assignment1 Opt1
SQL Assignment1 Opt1
Training Assignments
Version 3.1
Hanoi, 11/2016
Training Assignments SQL BASICS Issue/Revision: x/y
RECORD OF CHANGES
Contents
For the following assignments:...........................................................................................................3
Day 1. Lesson 1: Database Basics....................................................................................................3
Assignment 1_Opt1: Student Management....................................................................................3
1. Exercise 1............................................................................................................................3
2. Exercise 2............................................................................................................................4
CODE: BSQL_Assignment1_Opt1
TYPE: n/a
LOC: n/a
DURATION: 120 MINUTES
2. Exercise 2
Barem: 40%
Objective: K4SD (Understand basic database knowledge (DBMS, RDBMS, ERD))
Problem Description:
Consider the following relations for a database that keeps track of student enrollment in courses and
the books adopted for each course (Primary Key is mark post-fix with #):
STUDENT (SSN#, Name, Major, Bdate)
COURSE (Course#, Cname, Dept)
ENROLL (SSN#, Course#, Quarter, Grade)
BOOK_ADOPTION (Course#, Quarter, Book_ISBN#)
TEXT (Book_ISBN#, Book_Title, Publisher, Author)
Questions to answer:
Draw a relational schema diagram specifying the foreign keys for this schema.
Estimated Time to complete: 60 mins.
--THE END--