Docsity

Database Design Homework 3 in CMSC 424, Spring 2001 - Prof. Venkatramana Subrahmanian, Assignments of Principles of Database Management

Toggle sidebar
bg1
CMSC 424: Database Design
Spring 2001
HOMEWORK 3
Due: At the beginning of class on Thursday, March 29, 2001.
This homework continues the homeworks previously assigned. As before, assume that you have two files
calledsavings an d checkingsuch t hat each row in those files has (SSN, Fname, Lname, Amount)
fields with the same format as the test data provided for Homework 1. As per homework 2, you should have
code that automatically creates Oracle tables using these two files.
Write a C program that allows the user to choose one of the following three options:
1. Find the FNAME, LNAME of all individuals who have over 100K in their savings account.
2. Find the total number of individuals who have over 100K collectively in their savings and checking ac-
counts (thus, for example, if someone had60K in t hesavings and 50K in their checking, their collective
account value would be 110K).
3. Find the average balance in the savings and checking accounts.
Test your programs on the test data providedfor Homework 1.
1

Partial preview of the text

Download Database Design Homework 3 in CMSC 424, Spring 2001 - Prof. Venkatramana Subrahmanian and more Assignments Principles of Database Management in PDF only on Docsity!

CMSC 424: Database Design

Spring 2001 HOMEWORK 3 Due: At the beginning of class on Thursday, March 29, 2001.

This homework continues the homeworks previously assigned. As before, assume that 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. As per homework 2, you should have code that automatically creates Oracle tables using these two files. Write a C program that allows the user to choose one of the following three options:

  1. Find the FNAME, LNAME of all individuals who have over 100K in their savings account.
  2. Find the total number of individuals who have over 100K collectively in their savings and checking ac- counts (thus, for example, if someone had 60K in the savings and 50K in their checking, their collective account value would be 110K).
  3. Find the average balance in the savings and checking accounts.

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