Project on designing and creating a database , Database Management System

Assignment Help:

This project will involve designing and creating a database for an organization.  In the design of a database, there is no single "perfect" design.  So your database design may not match my design, or another student's design. So, for example, my design my have 7 tables, and your design may have 10 tables.  But they both may work equally well. You will be graded on how well your design matches the description in the paragraphs below, and whether it meets all the project requirements. 

Read the description and all the requirements (especially the queries you will need to run) before you begin the design process.  When the project is complete, you will turn in 2 documents: (1) an E-R diagram document (2) an SQL script with all the SQL statements included

Description

Members of a small town in Tennessee are tired of having nothing to do on the weekend.  They want to start a local club where people can pay a monthly fee to be a member and participate in various activities.  Activities will be offered for 3 basic age groups: 12-18 years old, 19-55 years old, 56 and older. The club will have a short order grill for sandwiches and salads, a bar that operates late afternoons and evenings, basketball court, tennis courts, shuffle board, climbing wall, large TV/movie room with a flat screen TV, and a computer game room with a LAN setup and several smaller TV's and game consoles and a weight room. A few years down the road, they plan to add a swimming pool and an outdoor track.

When a person joins, he/she gets a badge with a unique member number that serves as an ID which can be swiped to get into the club, to participate in activities and to use as a charge card while at the club (to pay for meals or other incidentals).

Assumption:  you can assume that each time a card is swiped, the following data will be available from the card swipe system to store into one or more tables in a database:

 - member name

 - member ID

 - date

 - time

 - activity (example: enter club, purchase sandwich, computer game room, climbing wall, purchase beer)

You do not have to be concerned with how the data gets into the system.  Just concentrate on the design of the system and what data needs to be stored.

Certain activities will be restricted by age:

12-18 year olds are not allowed in the bar or the weight room 56 and older are not allowed in the computer game room

The club needs you to design a database to help them manage the business.  Some of the things they need to keep track of are memberships, club dues, activities that members participate in, time of day/night that members visit, operating costs for the club (bills paid out, dues coming in, taxes etc), general information about the club (ownership, hours, address, etc),

Project Requirements

Complete the following tasks:

0) Using the description above, design a database for the club.

1) Generate an E-R diagram for the database.

   - use at least 4 entities.  each entity must have at least 3 attributes

2) Diagram the relationships between the entities, including the name, optionality and degree. 

  ---- include all the E-R diagrams and relationships in one document ----

3) Ensure that your database is in 2nd normal form and that all the tables follow the rules

of referential integrity and entity integrity.

[*** POINTS: E-R Diagrams and Overall Database Design 40% ***]

4) Create a script file, then generate all the SQL commands needed to create the database and database tables and put them in this script file.

( Success Hint:  be sure to add the command to create the database at the top of the file.  preceed this command with a check to see if the database already exists, or a drop command so that you won't get errors about the database already existing )

( Success Hint: Because you will most likely be running this script multiple times, be sure do add drop table statements prior to each create table statement in the script to avoid getting error messages about the table already being created. )

( Success Hint:  Generate the create table commands one at a time and get each one working before adding the next command to the script file.  Once you have all the tables being created successfully in the script file, move on to the next step of adding the insert statements to the script file for each table)

5) Create the SQL statements to insert sample data into each table.  Add these statements to the script file.

    - data entered into the tables must span more than one month.  You don't have to enter more than 30 records, but you might have 2 records in April and 5 records in May....this spans more than one month.

    - you must have at least 10 data records in each table

6) Execute the script file - which should create the database, then create and populate your tables.

7) Generate SQL Select statements that will return data for each of the parameters listed here

   - A list of all the member names and the date they joined

   - How many members are in each age group

   - The total amount of money earned from dues at the club for a specific month (pick any month, depending on the data you enter)

   - Names and age of all members who have used the climbing wall

   - The name, age and activity of members who used the club between 6pm and 8pm

   - A list of all members not allowed into the bar

   - The name and phone number of all members whose phone number begins with "423"


Related Discussions:- Project on designing and creating a database

Describe all integrity constraints which are violated, Consider the two rel...

Consider the two relations given below Given that A is the primary key of R, D is the primary key of S and there is a referential integrity among S.A and R.A, discuss all

What is database trigger, What is database Trigger? A database trigger ...

What is database Trigger? A database trigger is a PL/SQL block that can explained to automatically execute for insert, update, and delete statements against a table. The trigge

Microeconomic, anyone have a textbook solutions case fair, 8 edition of vo...

anyone have a textbook solutions case fair, 8 edition of vol 1 ?, please give me

What are the situations while dbms should not be used, What are the situati...

What are the situations while DBMS should not be used? DBMS should not be used in situations like: (i) No need of security. (ii) Not difficulty to access the data (iii) N

Draw an entity-relationship model, Draw an Entity-Relationship model for ...

Draw an Entity-Relationship model for the relational schema given in the Appendix. Show all the entities, relationships, relationship names, and attributes and also underline the

Proposed information analysis, Add generation capabilities and/or tailor th...

Add generation capabilities and/or tailor the built-in functionality of generator. This enables you to produce "all" the test data for the MySQL tables you produced in the previous

Define decision tree classifiers, Define decision tree classifiers? As ...

Define decision tree classifiers? As the name suggests decision tree classifiers use a tree: Every leaf node has an associated class, and every internal node has a predicate as

Define blocks, Define blocks? The database system resides eternally on ...

Define blocks? The database system resides eternally on non-volatile storage, and is into fixed-length storage units known as blocks.

I need erp system, I need ERP system We are selling automotive spare par...

I need ERP system We are selling automotive spare parts on the internet and we require ERP software, which would sync with our e-shop. Our e-shop doesn't use any e-commerce plat

Describe the grant function and explain security, Describe the GRANT functi...

Describe the GRANT function and explain, how it associates to security. What kind of privileges may be granted? How are they revoked? Ans: Since more than one user can aacce

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd