Writing sql statements to query a relational database


Assignment 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.

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.

a. 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).

b. 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.

c. Each store has a number of employees. Each department is supervised by a department supervisor and each store is managed by store managers 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.

d. 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.

e. 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.

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

g. 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.

h. 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.

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

j. 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 analyze, 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 centralize 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:

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 cros 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, Visio or try www.gliffy.com (Search for ERD gliffy to get started).

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.

Part C: Relational schema and PostgreSQL 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.

Database Management System Assignment Help - One of the best online services for getting A++ in academics!

Tags: Database Management System Assignment Help, Database Management System Homework Help, Database Management System Coursework, Database Management System Solved Assignments, Database Modelling Assignment Help, Database Modelling Homework Help, Normalization Assignment Help, Normalization Homework Help, Entity Relationship Diagram Assignment Help, Entity Relationship Diagram Homework Help

Request for Solution File

Ask an Expert for Answer!!
Database Management System: Writing sql statements to query a relational database
Reference No:- TGS03057086

Expected delivery within 24 Hours