Reference no: EM132367957
Database Systems Assignment -
Learning outcomes - Upon successful completion of this subject, students should:
- be able to model complex business rules using Entity Relationship Diagrams (ERDs);
- be able to apply normalisation techniques to optimise a database design;
- be able to use complex SQL commands to query a database;
- be able to research a recent development in the field of database technology.
Assessment item 1 - Research and Data Modelling
Task -
Part A: Database research (approx. 200-250 words):
Note: you are expected to conduct research about current and future Database technologies by answering the below question:
Research Question: Explore history of database systems and discuss the three most important developments in database development history to date.
Note: Use proper references in the APA style. Your research report must be well presented using proper content organization.
Part B: Data Modelling
Create a complete ERD in Crow's Foot notation that can be implemented in the relational model using the following description of operations. Hot Water(HW) is a small start-up company that sells spas. HW does not carry any stock. A few spas are set up in a simple warehouse so customers can see some of the models available, but any products sold must be ordered at the time of the sale.
- HW can get spas from several different manufacturers.
- Each manufacturer produces one or more different brands of spas.
- Each and every brand is produced by only one manufacturer.
- Every brand has one or more models.
- Every model is produced as part of a brand. For example, Iguana Bay Spas is a manufacturer that produces Big Blue Iguana spas, a premium-level brand, and Lazy Lizard spas, an entry- level brand. The Big Blue Iguana brand offers several models, including the BBI-6, an 81-jet spa with two 6-hp motors, and the BBI-10, a 102-jet spa with three 6-hp motors.
- Every manufacturer is identified by a manufacturer code. The company name, address, area code, phone number, and account number are kept in the system for every manufacturer.
- For each brand, the brand name and brand level (premium, mid-level, or entry-level) are kept in the system.
- For each model, the model number, number of jets, number of motors, number of horsepower per motor, suggested retail price, HW retail price, dry weight, water capacity, and seating capacity must be kept in the system.
Your task - Create an ERD for each of the above statements that describe the current business rules for HW. For each new statement being the business rule.
Use Crows Foot notations and include all of the following in each part:
- All entities with Primary key and any foreign key attributes;
- The relationships between entities;
- The cardinality and optionality of each relationship;
- Any M:N relationships are be resolved to 1:M relationships and ERD description is clear
- Include your student ID and full name under the ERD (in Draw.io) then copy the whole ERD as an image to your Word Document.
Additional 1 mark is given when following all the above correctly and producing a neat ERD with correct notations.
Assessment item 2 - Normalisation
Task - Suppose that you have been given the table structure and data shown in Table below, which was imported from an Excel spreadsheet. The data reflect that a professor can have multiple advisees, can serve on multiple committees, and can edit more than one journal.
Table 1: Sample PROFESSOR Records (attached)
Given the information in Table 1:
a. Draw the dependency diagram.
b. Identify the multi-valued dependencies.
c. Create the dependency diagrams to yield a set of table structures in 3NF.
e. Draw the Crow's Foot ERD to reflect the dependency diagrams you drew in Part c. (Note: You might have to create additional attributes to define the proper PKs and FKs. Make sure that all of your attributes conform to the naming conventions.)
Assessment item 3 - Query databases using SQL
Task: Complex SQL Queries
Instructions - From Resources under Main Menu in Interact 2 go to Assignment 4 Folder Copy sqlite3.exe file from the Assignment 4 Folder into a folder in your machine Copy a4.txt from the Assignment 4 Folder into the folder in your machine where your SQLite file is located
From the SQLite Command Prompt execute the a4.txt script. To do this, at the SQLite Command Line type .read a4.txt [to create the tables you will use to answer this assignment's questions]
At the SQLite Command Line type .headers on.
At the SQLite Command Line type .mode column.
Write and run SQL statements to complete the following tasks -
1. Show sums of line units for each invoice.
2. Show the details of the products that do not have a value for the attribute v_code.
3. Show the details of the invoices whose subtotal is greater than 24 but less than 76.
4. Show the details of the invoice who has the minimum subtotal.
5. Show the codes and names of the vendors who supplied products.
6. Using EXCEPT show the codes of the vendors who did not supply any products.
7. Using 'NOT IN' show the codes and names of the vendors who did not supply any products.
8. List the names and codes of vendors and the number of products each vendor has supplied, i.e. vendor XXX has supplied xxx products, and vendor YYY has supplied yyy products etc.
9. Show the details of the employees who are located in area code 615.
10. Using inner join, list the details of the products whose line price is greater than 99.
You are required to submit:
1. The SQL statements for each query, which should be copied from your SQLite3 Command Line and pasted into your submission file. If you type .echo on at the SQLite3 Command Line, SQLite will output your SQL statement with the results of the query making it easy to copy and paste both.
2. The screenshots of the results of the SQL statements which are to be copied from your SQLite3 Command Line and pasted into your submission file immediately after you execute the SQL query. If you used an output file please submit only the output file.
Attachment:- Database Systems Assignment File.rar