SQLAssignment 2 Guidelines

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Bus Adm 749-001 Data and Information Management

Fall 2024

Guidelines for SQL Assignment – Part 2


Due 11/18/2024

 This is an individual assignment, not a group project.   


   You must work on this independently.   
   Read all instructions before starting the assignment.   

This is the second assignment in the three part SQL project. For this assignment, you will be creating
and uploading data to the tables that you created for the previous assignment. As before, you are
working with a subset of the tables that were created for the database design for the Great Lakes Fitness
Center application.

This assignment requires you to:


 Create the data to load the eight tables that you created for the previous SQL assignment. You need
to create the data yourself, as providing you the data merely reduces this to a data entry exercise.
Guidelines are provided for creating the data. You are encouraged to be creative in this task. You
need to make sure that your data is realistic, and is consistent with the details in the case. You can
create the data on paper, in Excel, or anything else that allows you to visualize the data, including its
foreign keys.
 Load the tables with the appropriate data. You can do this in a variety of ways, including using SQL
INSERT statements, or direct entry into the datagrid in SQL-Developer. Make sure that referenced
tables are loaded first. Also make sure that date columns include a time component, when
applicable. See the Canvas home page for how to handle times in DATE columns.
 Print out the contents of all tables. Make sure that times are displayed. Include these in a Word
document (called TableContents.doc – save as PDF when submitting). You can use a SELECT *
FROM tablename to do this. See the Appendix for details.
 Include an abbreviated Academic Integrity Statement in the TableContents.pdf document.

The data to be created should satisfy the following constraints:


 MEMBER: should have 7 rows. Two of these should be from out of state, and three should not have
any employer data (including at least one from out of state).
 CREDITCARD: should have 7 rows. Some credit cards will not be used.
 APPLICATION: should have 5 rows. Two applications should have at least two members. Some of
these may be open currently, i.e. APPROVEDATE set to NULL. Some applications should take at least a
week to approve, and one should be approved on the day of application. All applications are paid by
credit card. You should have applications in every category (defined later).
 ACCOUNT: should have 5 rows. You need to make sure that the members on an application appear on
the same account. One account should be flagged as delinquent.
 BILL: should have 10 rows, two bills for every account – corresponding to two months worth of bills.
Note that the create dates should be identical for a month. Also, a bill is sent to one member only
(should be for the same account).
 CHARGE: should have at least 10 rows. You can make up suitable charges, but must include dues,
merchandise, and dining.

Bus Adm 749-001 Fall 2024: SQL Assignment 2 Guidelines Page : 1


 CHARGESMADE: will have at least 30 rows. The charge dates should correspond to the months
covered by the bill dates. Every account must have a charge for dues for each month. Some will
have additional charges. With the exception of dues, charge amounts and charge dates should not be
identical. Entries in this table must have a time that is not midnight. Some members should have
charges that include both merchandise and dining charges.
 CATEGORY: should have 3 rows; based on the three categories specified in the case. The data is also
specified in the case.

As a general rule, the data is limited by your imagination. However, in addition to the above constraints,
there should be some semblance of reality, particularly for the amounts charged. Also, the bill amounts
should roughly correspond to the charges made during that month. The account balance will probably
exceed the last bill amount. Also, the data should not be the same across rows, and times (if applicable)
must not be set to midnight.

Submission Guidelines

 You will be submitting 1 file for this assignment.


 Save the Academic Integrity Statement and the contents of the tables into a Word document. Do not
use printscreens – they are not readable. Name this file TableContents.doc. Save this in PDF format –
TableContents.pdf.
 Submit TableContents.pdf via the Canvas dropbox.
 You can submit it any time before the due date of 11/18/2024 at 2:30 p.m.
 Late submissions must be emailed to me and not submitted as Comments in Canvas.
 Do not copy assignments – it is very easy to detect, and will earn a score of zero for all parties.

Appendix

Contents of TableContents.pdf
Statement of Academic Integrity
I, {your name}, acknowledge that the work turned in for this assignment is my own, and that I have
neither given nor received unauthorized assistance in completing this assignment.
‘--- Table contents

CUSTOMER TABLE
CU NAME STRADDR CITY ST ZIP PC PRINTER
-- ---------- ---------- ---------- -- --------- -------- --------
C1 ABBOTT 123 STREET MILWAUKEE WI 532011234 DELL LEXMARK
C2 BURNS 835 STREET RACINE WI 531120000 MAC HP
C3 CHAPLIN 256 ROAD COLUMBUS OH 432011234 DELL CANON
C4 HARDY 826 AVENUE CHICAGO IL 600670000 GATEWAY HP
C5 KEATON 722 WAY DETROIT MI 527151234 HP

ORDERS TABLE
OR ORDDATE AMOUNT CU
-- ---------------- ---------- --
O1 01/01/2020 09:10 156.99 C1
O2 01/01/2020 10:29 79.88 C3
O3 01/10/2020 08:37 719.99 C1
O4 01/13/2020 15:44 343.97 C4
O5 01/17/2020 07:11 231.09 C5

End of TableContents.pdf

Bus Adm 749-001 Fall 2024: SQL Assignment 2 Guidelines Page : 2


To capture text output for table contents, I used the Run Script (F5) option in SQL-Developer .

Bus Adm 749-001 Fall 2024: SQL Assignment 2 Guidelines Page : 3

You might also like