Implement a relational database using the structured query

Assignment Help Database Management System
Reference no: EM132314055

Assignment - Database Project, Report and Presentation

Learning Outcome

ULO2: Show an understanding of the fundamentals of database design, implementation, management, and maintenance, including consideration of appropriate data security
ULO3: Implement a relational database using the Structured Query Language (SQL) Data Definition Language (DDL)
ULO4: Demonstrate an ability to query a relational database using Structured Query Language (SQL) and Data Manipulation Language (DML)

Aim: To give you practical experience in database modelling, normalization and writing SQL statements to query a relational database

Assignment Summary:

The project specification details provided in this document and you must use only given specifications to come up with your solution. Make appropriate assumptions where ever required.

Please make sure that your group must meet your lecturer/tutor at least twice to update the progress of your assignment.

Background Information for Sample Database Project:

Australian Manufacturing Company (AMC) requires a database system to manage their stores, employees, products, suppliers, patrons and orders.

The following information has been gathered about current business activities of AMC.

• AMC has many stores in different cities across Australia. Each store has unique store number and other details like name, contact details (phone number, email address and fax number) and location details (postal address composed of street number, suburb, state and postcode).

• There are many departments within each store, for example, HR, accounts, finance and sales etc. each department is uniquely identified by department number. AMC also records department title, phone number and email address.

• Each store has a number of employees. Each department is supervised by a department supervisor and each store is managed by a store manager who both are employees of AMC. Each department has a single supervisor only i.e. the department supervisor is also the supervisor for all the employees work within that department.

• Each employee is referenced by unique employee number, name (first and last names), address, mobile number, email, TFN, salary and joining date. An employee's salary is recorded differently as per his or her employment type. Employees can be employed as fulltime or casual basis. For a fulltime staff, annual salary is recorded and hourly rate for a casual staff.

• Each store creates payslips for all employees work in that store on a weekly basis. As a minimum payslip number, no of hours worked, employee detail, store detail and gross pay are recorded.

• AMC sales different products like fashion, health, beauty, electronics etc. Each product is characterised by product number, name, brand, description and price.

• Each product can be supplied by one or more supplier and each supplier can supply one or many products. AMC also keeps appropriate details of their suppliers.

• Each store maintains an inventory of their products available for sale. The quantity of each product available in store and the quantity ordered are kept.

• AMC patron visits the store and shops in the store. Each customer is characterised by customer number, name (first and last names), mobile number and address.

• A patron may place orders. An order contains one or many products at a time. A store keeps track of order number, order date, product(s) ordered and quantity ordered for each product.

The proprietors of AMC have appointed your group as Database System Consultant to analyse, design and develop conceptual data model and physical database. They want a software/online application in future to be built on the database you design so that the operation of the AMC is greatly improved.

Your created models must accommodate the provided requirements. It is understandable that the provided information may not sufficient to create model that centralise all the data appropriately. You are free to make assumptions about their business activities if require. Make sure you record your assumptions.

System Requirements:

The system is a prototype system and as such is not a full production version. You will be required to enter a representative sample data into your tables in order to test the design and operation of your database.

Project Specification:

1. Part A: Entity Relationship Diagram

1. Your first task is to study the Case study requirements and gather as much knowledge to list all the main Entities and attributes.

2. Create an Entity Relationship Diagram (ERD) to help you decide on the relationships.
Your entity relation diagram that models your database design should:
i. Include all entities, relationships (including names) and attributes.
ii. Identify primary and foreign keys.
iii. Include cardinality/ multiplicity and show using crow's feet or UML notation.
iv. Include participation (optional / mandatory) symbols if applicable.

The ERD should be created as part of a Microsoft Word document. Hand-drawn diagrams will not be accepted. It is recommended that you complete your ERD using Draw.io

2. Part B: Normalisation

1. Normalise all entities and relationships in optimal normal form. Provide the normalised schema and discuss the level of normalisation achieved for each relation. You goal should be normalise all entities in 3NF. Provide the reasons for any relation that is not maintained in 3NF.

3. Part C: Relational schema and MySQL database

1. Create relational schema that matches ERD and normalised schemas you created in Part A and B. The schema should include suitable data validation, integrity and referential integrity constraints, for example, types and length of attributes, primary and foreign keys etc. Make sure you follow standards, naming conventions and notation.

2. Using MySQL, you are required to develop a demonstration prototype system (database) that stores data for AMC stores, employees, products, suppliers, patrons and orders. Create a new database called AMCDB. Create tables according to your relational schema created in step 1.

Follow a standard naming convention for table names and also field names. Avoid using spaces and any special characters in table and field names. Use underscore_case or use camelCase to separate parts of a name.

You are required to be consistent in tables' name, fields' name, data types, field size and key constraints with relational schema created in step 2.

3. Add at least three records into each table.

4. Part D: SQL

Use the AMCDB database that you created in MySQL to design and execute SQL queries that answer the following questions.

Number your answers to each question clearly. The answer to each question must be tabulated as shown in the example below and include the SQL statement and also the output that is produced when you execute the statement in your database. The output includes the records that are listed and also the message that appears when you run the SQL statement.

Format both the SQL and also the Output in Courier New 10 or 11 point.

1. List the full name of Patrons, phone number and address in the descending order of customer number. The full name is comprised of first and last name joined with single space. Use the alias Customer full name for the composed column heading.

2. List all the products having price less than $100.

3. List the product number, product title, quantity ordered, unit price and total amount per product (unit price * quantity ordered) for order having order number 1005.

4. List name, full address and fax number of stores that has the word ‘George' anywhere in the street component of address. Your query should consider the case sensitivity of the street as well i.e. the stores with words ‘George', ‘GEORGE', ‘george', ‘GeorGe' etc. in street should be returned by your query too.

5. List all the orders having at least two different products ordered.

6. List customer number, name and address of all the customers who has not placed any order.

7. Retrieve first name, last name and employee number of all the employees along with department name and store name where they work.

8. For each store, display store name and number of employees works in account department.

9. List all the orders placed for financial year 2018 i.e. orders placed after 30/06/2017 and before 01/07/2018.

10. Retrieve customer number and the total number of orders placed by each customer.

11. For each order, retrieve the order number, order date and number of products ordered in it. Sort the output in descending order of order number.

5. Part E: Personal Report - Every group member needs to write this part individually and add to the documentation

1. Write a page to the AMC proprietors as a personal reflection that describes your experience building the database. You can discuss any challenges / difficulties that you experienced or solutions that you found. Comment on any limitations and / or strengths of your database design. Comment on whether your database meets all the system requirements as specified in Project Specification. Avoid making excuses or comments that reflect negativity. Include an acknowledgement of all students you have spoken to about the assignment.

6. Part F: Report Layout, SQL script and presentation

1. Deliverables for Parts A, B, C, D and E must be printed as a report with a cover sheet attached. See Administrative Details on page 10 for more details. Your report must include header and footer that include all the group members' name and student number, unit name, assignment name, and page numbers. Your report must be checked for spelling and grammar. Your report must also be formatted so that it is well set out and easy to read.

a) Each group must submit a single zip file on Moodle which contains all the assignment files (single word file with deliverables for parts A - D, separate personal reports for each group member, MYSQL backup script notepad file and presentation).

b) The SQL that can be used to restore your database should also be uploaded to Moodle. You can create the SQL for your database as follows:

Use the mysqldump command to create a text version of the database. Use mysqldump to create SQL file that contains a list of SQL statements which can be used to restore/recreate the original database.

The syntax is as follows:

$ mysqldump -u [uname] -p[pass] [dbname] > [backupfile.sql]

WHERE:
[uname] Your database username
[pass] The password for your database
[dbname] The name of your database
[backupfile.sql] The filename for your database backup

You do not need to log on to MySQL. For example, from the DOS command prompt, the syntax is:

e:\xampp\mysql\bin>mysqldump -u root MyDB > e:\MyDB_bak.sql This will create the SQL file that can be used to restore your database. OR ---
You can save your script as you go to notepad.

You are also required to present your work in the class. The presentation can be around 5 to 10 minutes long.

Attachment:- Database Project.rar

Reference no: EM132314055

Questions Cloud

What is some instigated agreed changes during the project : What is some instigated agreed changes during the project that can be considered to ensure continuous quality improvement?
What is some quality problems that can occur : What is some quality problems that can occur during a project?
Explain the action taken to correct the variance : Identify any variances in quality and explain the action taken to correct the variance?
What is Block Chain : Block Chain Case Study - What is Block Chain. How this technology works and what are the challenges this technology is facing
Implement a relational database using the structured query : ISY1002 - Database Management for Business - Australian Institute of Higher Education - Implement a relational database using the Structured Query Language
Compare different central tendencies : Compare different central tendencies in 1D. You should prove inequalities between them like the Arithmetic Geometric mean inequality
Describe the various international marketing entry routes : TNA67 Pearson BTEC HND in Business - International Marketing Assignment, ICON College of Technology and Management, UK. Describe marketing entry routes
Potential impact of machine vision on the goods transport : The potential impact of Machine Vision on the Goods Transport Industry - create a two-minute video and written proposal about the impact of a particular
Should they continue to operate the facility at home : Different types of costs discussed in this unit. List any three (3) types of costs and provide one specific example of each cost from the case

Reviews

len2314055

5/30/2019 4:20:11 AM

B Normalisation • All relations are in appropriate format (7 marks) • Appropriate arguments provided on leaving each entity in normal form which you considered as optimal (3 marks) 10 C Relational Schema (10 marks) • Schema matches ERD. All tables and attributes included with appropriate formatting i.e. data types, field size, allow null value or not etc. (5 marks) • Primary and foreign keys included, foreign keys with reference to primary table (3 marks) • Appropriate notations (2 marks) MYSQL Database (20 marks) • Consistent translation from relational schema to MYSQL database (15 marks) • Appropriate naming convention used (5 marks) Records in MYSQL Database (5 marks) • At least 3 records present in all tables (3 marks) • Additional records shown (2 marks) 35

len2314055

5/30/2019 4:19:49 AM

Part Task Total Marks A ER Diagram: • Completeness of ER diagram, included all essential entities, attributes and relationships with names, cardinalities and participation (10 marks) • Primary and foreign keys (4 marks) • Resolution of many to many relationships (3 marks) • All assumptions clearly noted (3 marks) Deduct marks (4 marks) if incorrect and inconsistent notation used 20

Write a Review

Database Management System Questions & Answers

  Create a range named volunteer-hr

On the Club Information worksheet, in range H6:H16, create a range named Volunteer_Hrs. In range D6:D16, create a range named Class.

  Database management system create a database design

database management system create a database design specification enhanced entity relationship diagram eerd and

  Create execute and test a stored procedure

Apply active database concepts such as stored procedures and triggers in a relational database - Create, execute and test a stored procedure.

  Oracle data migration an interface with the pl-sql

ITDB4102 - Oracle Fundamentals - Oracle Data Migration an Interface with the PL/SQL a comparative study - explain your methodologies and any procedures

  Write query to display first name and last name as full name

Write query to display first name and last name as full name

  What are guidelines available for creating a better query

Database developers have many different options available to them for building more efficient SQL queries. What are the three guidelines available for creating a better query design. Explain those options and the tasks that must be performed by th..

  Q1with the new unsw timetabling system the lic of each

q1with the new unsw timetabling system the lic of each course is required to specify what facilities they require in

  Describe the objectives of the database environment

Describe the objectives of the database environment. List the data specifications (must include a minimum of three entities with attributes).

  Develop a commercial fishing strategy

ISM-5150 - Develop a commercial fishing strategy and the related IT that should be applied. Remember you want to build a viable and thriving fishing company

  Explain what is meant by the process of denormalization

M359 Relational databases: theory and practice Assignment. Use the block notes to answer the following questions: Explain what is meant by the process of denormalization and how it is done. Explain why we may need to use denormalization (i.e. provide..

  Create a linked table in database by importing the workbook

Create a linked table in the database by importing the workbook named a08c1Customers.xlsx. Use the first row of the Customers1 worksheet as column headings and accept all other default options.

  Write the business rules that are reflected in the erd

Write the business rules that are reflected in the ERD shown in Figure. (Note that the ERD reflects some simplifying assumptions.

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