Docsity

2 Questions on Database Design - Assignment 2 | CMSC 424, Assignments of Principles of Database Management

Toggle sidebar
bg1
CMSC 424: Database Design
Spring 2001
HOMEWORK 2
Due: At the beginning of classon Tuesday. Feb 27, 2001.
First read chapter 3 of the Sunderramanbook.
Now suppose you have two files called savings and checking such that each row in those files has
(SSN, Fname, Lname, Amount) fields with the same format as the test data provided for Homework
1.
1. Write a C program that will take the above files as input, and create Oracle tables with the same data
(and names) as output.
2. For each of the queries you were asked to write in SQL in Homework 1, write a C program that will
execute that query and save the answer in a file.
Test your programs on the test data providedfor Homework 1.
1

Partial preview of the text

Download 2 Questions on Database Design - Assignment 2 | CMSC 424 and more Assignments Principles of Database Management in PDF only on Docsity!

CMSC 424: Database Design

Spring 2001 HOMEWORK 2 Due: At the beginning of class on Tuesday. Feb 27, 2001.

First read chapter 3 of the Sunderraman book. Now suppose you have two files called savings and checking such that each row in those files has (SSN, Fname, Lname, Amount) fields with the same format as the test data provided for Homework

  1. Write a C program that will take the above files as input, and create Oracle tables with the same data (and names) as output.

  2. For each of the queries you were asked to write in SQL in Homework 1, write a C program that will execute that query and save the answer in a file.

Test your programs on the test data provided for Homework 1.