0% found this document useful (0 votes)
15 views2 pages

Final Project - Step3

Uploaded by

koechmitchel12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views2 pages

Final Project - Step3

Uploaded by

koechmitchel12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Final Project

Step 3: 12 points

A. Create Database and Tables:


Translate the relational schema you developed in Step 2 into an actual database. Use MySQL
DBMS and the SQL language to create your database and the corresponding tables. Place the
constraints (e.g., default values, foreign keys) you find appropriate - Important notes:
1- Make sure your database, as discussed in Step 2 and because of the limited time, has the
minimum requirements (the number of entity-sets and relationship-sets). You, as the
designer and developer, may decide that your database requires more entity-sets and
relationship-sets.
2- In step 2, you submitted an ER diagram and corresponding relational schema – as the
design process is iterative, you can add/remove/update the schema to fulfill the
implementation phase.
3- In step 2, you submitted a number of queries - as we discussed more SQL operators, you
can update/modify the queries.

B. Prepare and Insert Records:


Prepare the data tuples/rows to be inserted in your database as follows:
1. You can populate your database with real data. Search online for data (usually in .csv,
.txt, or .excel format) and use them. You may not find a data set that fully cover all
attributes of all tables, such data is expected to cover only the important attributes.

2. You may use online tools (e.g., https://www.mockaroo.com/) to generate random data into
files.
You can insert the tuples you prepared (either from real dataset or from online tools) by
importing these files to MySQL. Each main table in your design is expected (if possible) to hold
at least 100 tuples.

You can also (optionally) create a Java application that connects to the created database, reads the
tuples you prepared (either from real dataset or from online tools) and, through your Java app,
build the insert queries to fill the different tables.

C. Run Queries and Print Results:


Create a simple “Interactive” Java application (a terminal-based, GUI-based, or web-based)
that connects to the created database to run queries. Your Java app handles user interactions.
Display a nice name for your application along with a short welcome message descripting the
goal of your database. Your application should display the different queries you prepared in
step2 (query number and short description) and ask for user’s input (user enters 3 and clicks enter,
your application executes the 3rd query). Your application will display the results the way you find
appropriate on terminal. After the application executes a query, the app views the menu again for
the user to select another query. You should allow the user to exit your application. The user
should not write SQL query through your terminal to be executed.
Submission:
1. Directly to the folder titled Step 3 under the D2L Assignments tab, submit the .java file(s) you
developed and one PDF structured as follows:
1. On the first page, place you name and a short description of your idea (from Step1)
2. On the second page, mention the type of data you used:
i. did you use real data (yes or no), which tables and attributes are covered with such real
data set.
ii. did you use java to generate random data, which tables and attributes are covered with
such random data.
iii. did you use online tools to generate random data, which tables and attributes are
covered with such data set.
3. On the third page, one screenshot of your running application to show if you developed a
terminal, GUI, or web application along with the menu of queries for user interaction. Do
not take screenshots with a camera.
4. On the following page(s), for each of the queries, take screenshot(s) for the SQL query you
developed as well as the output. Do not take screenshots with a camera.
5. On the last page, list the edits/modifications/adjustments you made (if any) to the ER,
Relational Schemas, or Queries you submitted in step2.

2. This is an individual assignment -- Cheating/plagiarism will be checked and will receive zero.

3. The assignment is due 11:59pm – Monday December 2nd. You can submit your assignment,
within 3 days after this due date, to be graded out of 75% of the assignment’s grade. After this
grace period your late submission will not be accepted.

You might also like