SQL Queries to extract data from data tables and questions on mapping conceptual data models into relational data model.
Assignment Description
Part B: (70 marks)
1.
The snapshot of Party_BookingDB database structure is given below. Party_BookingDB is a database that keeps track of information about the Bookings, Staff, Menus and Customers registered in the system
You are working as an IT specialist in this organisation and are required to extract information from this database by executing SQL queries according to the instructions given below.
The primary keys are marked in the following snapshot of Party_BookingDB database shown in figure 1.
Figure 1: Snapshot of Party_BookingDB database © Database Answers Ltd. 2016
1. First you need to implement the above database in MS Access. You only have to create 5 tables for Bookings, Menus, Menus_Booked, Menu_meals and Meals. You do not have to create other tables in the Figure1. And populate those tables with suitable data (at least 3 records per table).
You can use Datasheet view in MS Access or SQL statement (as given below) to enter suitable data records.
INSERT into TableName
VALUES (“..”,”..”,.....)
NB: You only have to create 5 tables.
And you need to upload your database on submission link along with the word document.
This is an individual assignment; it should be your own individual work (You should not copy Ms Access Database). If not, this is considered cheating and you will get zero marks for the whole assignment. (10 Marks)
Write SQL queries for the following questions.
Execute the queries on the “Party_BookingDB” database you created in MS Access. Include screen shots of the outputs and all SQL statements you used to answer following questions
(3 marks for each screen shot & remaining marks for the SQL query)
1. Prepare a list of BookingID, StaffID, CustomerID and date_of_event of all Bookings. You are required to sort the list in descending order of CustomerID
(10 Marks)
1. Assume that you want to count how many bookings are there on the date “24th August 2018”. Write a query to find the number.
(10 Marks)
1. Display BookingID, StaffID, CustomerID, Customer_details, date_booked of all events scheduled for 24th August 2018.
(Hint: Join Bookings and Customers)
(10 Marks)
1.
Figure 2 shows the ER diagram that captures important information in the tracking of Suppliers and items in a retail store. This retail store purchases items from a number of suppliers. It keeps track of the items purchased from each supplier, and it also keeps a record of suppliers' addresses. Items are identified by ITEM-TYPE and have a DESCRIPTION. There may be more than one such address for each supplier, and the price charged by each supplier for each item is stored. Suppliers are identified by SUPPLIER-ID.
Figure 2: Retail store ER Diagram
1. Convert the ER diagram into a relational database schema. Be certain to indicate primary keys (underline).
Eg Supplier ( SupID: NUMBER; SuppName: text,.....)
(10 Marks)
1. Identify Associative / Bridge entity in the ER diagram of figure 2. Explain purpose of using Associative / Bridge entity.
(3 Marks)
1. Do we need a separate entity for supplier address? Can we include it as an attribute in the Supplier entity? Explain your answer.
(2 Marks)
1.
Business intelligence (BI) is a term that describes a comprehensive, cohesive, and Integrated set of tools and processes used to capture, collect, integrate, store, and analyse data with the purpose of generating and presenting information to support business decision making. Components of the BI framework are given in the Figure 3.
(Reference: Chap 13 -Database Systems: Design, Implementation, & Management Ⓒ 2017 ISBN 9781305627482-By Carlos Coronel and Steven Morris )
Data visualization is one of the BASIC BI ARCHITECTURAL COMPONENT.
Figure 3: Components of the BI framework
Answer following questions.
2. Why is data visualisation important in Business Intelligence?
(5 Marks)
2. Tableau (www.tableau.com) is a data visualization tool. Tableau can help anyone see and understand their data. Connect to almost any database, drag and drop to create visualizations.
Install Tableau Public (https://public.tableau.com/s/ ) on your laptop / computer and create any 2 visualisations. Follow the following instructions:
1. First go to Tableau Public https://public.tableau.com/s/ and enter your email address and select “Download the App”
1. Then you can download the software and run the .exe file to install.
1. Now you will get the following starting screen. Here you can upload MS excel or MS Access file. Watch this video to find more details on “How to”. https://public.tableau.com/en-us/s/resources
1. You can use any MS excel, MS Access file or any data file to create 2 visualisations. It should be your own individual work.
(10 Marks)
Other useful Resources
0. Getting started -https://public.tableau.com/en-us/s/resources
0. Data visualization field guide: a definition, examples, and learning resources
https://www.tableau.com/learn/articles/data-visualization
Marking criteria:
Marks are allocated for each part as below:
Marking Rubric for Assignment 1 -Total Marks 100
|
|
Excellent
100% |
Very Good
80% |
Good
60% |
Satisfactory
40% |
Unsatisfactory
0%-20% |
|
Q1. Model organisational information requirements using conceptual data modelling techniques and Query Writing Skills
(40 marks)
|
Evidence of accurate and well- written queries |
Evidence of good query writing skills. |
Generally relevant. |
Demonstrated reasonable query writing skills. |
Did not demonstrate evidence of understanding the topic.
|
|
Q2. Convert the conceptual data model into relational data model.
(15 marks) |
Demonstrated excellent ability to think critically.
|
Demonstrated an ability to think critically.
|
Demonstrated reasonable ability to think.
|
Demonstrated some ability to think critically but not complete.
|
Did not demonstrate ability to think critically.
|
|
Q3. Model organisational information (By using online software Tool and Big data technologies)
(15 marks) |
Demonstrated excellent knowledge on the topic
|
Demonstrated good knowledge on the topic.
|
Demonstrated reasonable knowledge on the topic
|
Demonstrated some knowledge on the topic.
|
Did not demonstrate any knowledge on the topic. |
|
Quiz
(30 marks) |
Demonstrated excellent ability to think critically.
|
Demonstrated some ability to think critically.
|
Demonstrated reasonable ability to think.
|
Demonstrated some ability to think critically but not complete.
|
Did not demonstrate ability to think critically.
|