Reference no: EM132528574
CSC72001 Database Systems - Southern Cross University
Develop a Database Prototype
Build and test a database prototype based on your design in Part A.
Part B - Database Prototype
a. Database Development
Build your database in MySQL using PhpMyAdmin. Your database should be created on the Infotech server and be named with your username followed by Ass3 (eg: rmason 10Ass3). Referential integrity and any other constraints must be created, as required by your design.
b. Database Design
Choice and consistency of table and attribute naming conventions used, selection of data types, primary and foreign keys.
c. Sample Data
You must provide enough valid data in your database to run the SQL queries below successfully with at least 5-10 rows in the result set.
d. Use of Views
The database should be capable of producing the query results below. To get the required results, you may need to build underlying queries or views. Where appropriate, these views should incorporate the use of standard practical informative column headings that fit the expected use of the view.
e. Export Script
Once your database is finalised, you must create an export script (.sql) to create a backup of your database, including all database structures, table definitions and data. Name this SQL script as yourusernameAss3.sql, for example rmason10Ass3.sql.
f. Proof of Testing
The results of your queries should be presented in a Word document using a basic report layout with a title page, page numbers etc. The query that you create for each of the parts below should be pasted into your report (not screenshots), followed by a screenshot of your results. Snipping Tool on Windows is useful for taking screenshots of query results.
g. SQL Queries:
Note: your result sets should not display any ‘extra' columns - such as surrogate keys. Use surrogate keys in your progressive testing by all means, but your finished test results should not include surrogate keys unless specified in the question.
1. Club facilities
Create a query that displays the list of clubs that provide kids playroom as one of their facilities, showing club name, state, club phone number sorted by club state.
2. Members list for a class
Create a list of class-only members for one of the class. Results should be sorted by the last name of the member and should include all contact details.
3. Counting club members
Create a query that displays all clubs and the number of members for each of those clubs. Your query should select the club name, state, manager name, number of total members, number of all-access members, number of class-only members sorted by club state.
4. Personal trainers
FIT Club management would like to identify trainers that have experiences as personal trainers. Create a query that selects these trainers only, showing the club name, trainer name, the number of members trained sorted by the club state, followed by the number of members.
5. Information about club managers
Create a query that displays a list of managers, with the name, email, phone number, and the club he/she belongs to, sorted by manager last name.
6. Trainers specialised in weight loss
Create a query to display the list of active trainers who are currently active and specialised in weight loss. The query results need to show trainers name, clubs name, and trainers contact details, sorted by last name of trainers.
7. Members statistic
Create a query that displays members statistics for each club showing club name, state, the total number of members, number of active members, number of on hold members, number of inactive members.
8. Club timetable
Create a query that displays the classes timetable for a club. The query result has to display day, time, class name, instructor name sorted by day, followed by time.
Attachment:- Develop a Database Prototype.zip