You are on page 1of 1

DBMS - Project

Due Date: April 24, 2017

Assignment:

You will develop a database application for transaction management for the database you
developed in homework 3.

Description:

a. Use the SQL schema that you created in assignment 3 for the car rental company.
b. Create a JAVA class CarCompanyQuery.java to interact with database.
c. Run the queries in assignment 3 using this java class and provide sample output.
d. Create a java test class CarCompanyQueryTest.java to test your code.

Provide:

1. SQL to create database and load data (from assignment 3): (20 points)

2. CarCompanyQuery.java

3. CarCompanyQueryTest.java

Additional Resources you can use:
- Eclipse IDE for Java development.
- Sample examples and eclipse setup:
o http://www.tutorialspoint.com/jdbc/jdbc-sample-code.htm
o http://www.vogella.com/tutorials/MySQLJava/article.html

- You will need MySQL driver to run the example. Second URL tells you where to find it
and how to add it to your project.
- You may use JUnit for testing as explained in second URL.

Dr. Raj Singh Assignment # 4 1

You might also like