Ask DBMS Expert


Home >> DBMS

Database Fundamentals

Assignment - Party Hire Case Study

Task 1

1. Create an MS Word document named
2. Create an ER Diagram from the above scenario, being sure to:
a) Use Crow's Foot Notation
b) Mark cardinality, existence, primary keys (with an underline), and foreign keys (with the letters "FK" in brackets).
c) Ensure the entities are in a normalised state
d) Write any assumptions you make if you think it important to clarify the reasons for building particular relationships, creating particular attributes, or leaving something out.
e) Place your name and student number within the drawing
f) Insert that ER Diagram into your Word document. If you use Lucidchart or similar you could take a screenshot.

Task 2

Create your solutions for following tasks in Microsoft SQL Server and:
- Write a T-SQL comment above each SQL statement you write, stating your name, the task you are solving, and the purpose of the code. For example, "Harpreet. Q1. Creating a database" and "Harpreet Q1: Creating a table", above the statements required for question 1.
- Paste all the SQL code that you write into your MS Word document. That is, paste it as plain text
- Paste screenshots from Microsoft SQL Server into your MS Word document. The screenshots should show your code along with the relevant messages window and/or outputs window

Note:
o For screenshots, keep the images small by using tools like Windows-Shift-S or the MS Word Screenshot tool. Don't clip the entire screen or a whole window.
o Note that you could gather up all of your solutions for Tasks 2A and Task 2b into 2 batches and run each batch in one hit.
o Where necessary, attach labels to the screenshots in your MS Word document so as to make it clear which screenshot or portion of a screenshot belongs to which solution.

Task 2a

1. Write two CREATE statements. One to build a database named "PartyKids" and one to build within it a table named "Customer" which will store details about PartyKids customers. The columns should match the attributes listed in your ER Diagram. All columns should be required columns (that is, don't allow NULL values).

2. Use a single INSERT statement to create the details of 7 customers. Name one of the customers "John P Smith" and record his address as 12/1 Flinders St, Melbourne 3000. [Note: If you didn't include address details in the Customer entity in your ER Diagram, do so now and then redo task 2a.1]

3. Use a SELECT statement to display full details of all customers

4. Change the address of John Smith to 15/1 Flinders Street and then display the name and address only of all customers

5. Display the details of all customers whose first name that starts with the letter "J"

6. Display the details of all customers who live in Victoria. Note that all Victorian postcodes are in the 3000's and no other states use the 3000's.

7. Delete John P Smith from the database

8. Add a 2nd table to your database.
o It should store details about bookings made by a customer so name it "Booking" or something similar. If your ER diagram doesn't show a customer entity linked to table that lists bookings (party hires) made by customers, then add one now. Ensure your Booking table contains, at the minimum, attributes to store the date of the booking and any customer feedback.
o Build a relationship between the Booking table and the Customer table and make it impossible to create a new Booking that doesn't belong to an existing Customer.
o Insert the details of at least 6 bookings. Enter details into every column of each record. The bookings should all belong to just 3 customers - 1 for one customer, 2 for another, and 3 for the 3rd.

9. Use a DELETE statement to try to delete a customer who has a booking. It should not be possible.

10. Display all bookings grouped by customer. Display full booking details, but don't show any customer details.

11. Display the customer names and booking dates of all customers who have made a booking and sort them from the most recent booking to the least recent.

12. Display the names of customers who have not yet made a booking.

Task 2b

13. Create all the tables you have drawn up in your ER Diagram and build the relationships between them. Choose your data types carefully. Note that you will need to buid the tables on the "one" side before the tables on the "many" side.

14. Add at least 3 records to every table and then display them all. Note that you will need to insert records into the tables on the "one" side before inserting into tables on the "many" side.

15. Display the names of all customers who have rented inflatables

16. Display the names of all customers who have rented chairs or inflatables

17. Display a count of the number of booking days of each customer

18. Display the total amount of money received from each customer. That is, display one one value per customer.

Task 3

19. Ms Pop is curious to know why a computer expert like you would draw a diagram before using database software. Write 200 to 250 words explaining the purpose of creating your ER Diagram before building the database

20. Ms Pop is thinking about accepting credit card payments from customers and keeping a record of the payments in her database. She is concerned about storing personal details such as credit card numbers and customer addresses. Write 150 to 200 words naming the main legal issue at play and the techniques you could use to help secure her database.

Attachment:- Party Hire Case Study.rar

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M92836555
  • Price:- $120

Guranteed 48 Hours Delivery, In Price:- $120

Have any Question?


Related Questions in DBMS

Data mining assignment -in this assignment you are asked to

Data Mining Assignment - In this assignment you are asked to explore the use of neural networks for classification and numeric prediction. You are also asked to carry out a data mining investigation on a real-world data ...

Sql query assignment -for this assignment you are to write

SQL Query Assignment - For this assignment you are to write your answers in a word document. This assignment is in three parts: Part A (reporting queries), Part B (query performance), Part C (query design). For this assi ...

The groceries datasetimagine 10000 receipts sitting on your

The groceries Dataset Imagine 10000 receipts sitting on your table. Each receipt represents a transaction with items that were purchased. The receipt is a representation of stuff that went into a customer's basket. That ...

You are in a real estate business renting apartments to

You are in a real estate business renting apartments to customers. Your job is to define an appropriate schema using SQL DDL in MySQL. The relations are Property(Id, Address, NumberOfUnits), Unit(ApartmentNumber, Propert ...

Objectivethe objective of this lab is to be familiar with a

OBJECTIVE: The objective of this lab is to be familiar with a process in big data modeling. You're required to produce three big data models using the MS PowerPoint software. This tool is available on UMUC Virtual Deskto ...

The relation memberstudentid organizationid roleid stores

The relation Member(StudentId, OrganizationId, RoleId) stores the membership information of student joining organization. For example, ('S1', 'O2', 'R3') indicates that student with Id 'S1' joined the organization with i ...

Relational database exerciseyou have been assigned to a new

Relational Database Exercise: You have been assigned to a new development team. A client is requesting a relational database system to manage their present store with the anticipation of adding more stores in the future. ...

Relational database design a given the following business

Relational Database Design A) Given the following business rules, identify entity types, attributes (at least two attributes for each entity, including the primary key) and relationships, and then draw an Entity-Relation ...

We can represent a data set as a collection of object nodes

We can represent a data set as a collection of object nodes and a collection of attribute nodes, where there is a link between each object and each attribute, and where the weight of that link is the value of the object ...

Data model development and implementationpurpose of the

Data model development and implementation Purpose of the assessment (with ULO Mapping) The purpose of this assignment is to develop data models and map Database System into a standard development environment to gain unde ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As