Connect on Whatsapp : +97143393999 , Uninterrupted Access, 24x7 Availability, 100% Confidential. Connect Now

# ITDA1001 Database Fundamentals

## Question:

### Party Hire Case Study

Party Kids is a company that rents out inflatables, tables, and chairs for children’s parties.

It is owned Ms Donta Pop and she has been very happy to see her business grow rapidly over the past 2 years. She has recently purchased dozens of new tables, a number of new types of inflatables and dozens of chairs.

To store it all, Ms Pop has rented out 2 new storage facilities, so that she now has one location on the east side of town, one central, and one in the west.

Ms Pop has been finding it impossible to keep track of customer details, bookings, and the storage location of her assets. She has been trying to manage with a paper system but has been making mistakes like hiring out an item twice for the same day. So, she has now hired you to shift her records into database.

You have interviewed Ms Pop and you believe you have enough information to begin planning the database. This is what you know:

• Ms Pop owns over 500 asset items. She is carrying:
• 3 inflatable models. She owns 20 inflatables in all.
• 3 chair models. She owns 100’s of chairs.
• 1 table model – a plastic folding table that seats 10 people. She has no plans to purchase a different model of table.
• Assets within a model category are all the same price. For example, for cushioned seats the price is \$10 per day, and for small plastic chairs it’s \$2 per day.

1. Create an MS Word document named “Your Given Name– Your Student Number – Party Kids.docx" e.g. Harpreet – 123456 – Party Kids.docx.
2. Create an ER Diagramfrom the above scenario, being sure to:
1. Use Crow’s Foot Notation
2. Mark cardinality, existence, primary keys (with an underline), and foreign keys (with the letters “FK” in brackets).
3. Ensure the entities are in a normalised state
4. 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.
5. Place your nameand student number within the drawing
6. Insert that ER Diagram into your Word document. If you use Lucidchart or similar you could take a screenshot.

• 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, “ 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 codealong with the relevant messages window and/or outputs window

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

1. 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]
1. Use a SELECT statement to display full details of all customers
1. Change the address of John Smith to 15/1 Flinders Street and then display the name and address onlyof all customers
1. Display the details of all customers whose first name that starts with the letter “J”
1. 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.
1. Delete John P Smith from the database
• 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.
• 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.
• 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.
1. Use a DELETE statement to try to delete a customer who has a booking. It should not be possible.
1. Display all bookings grouped by customer. Display full booking details, but don’t show any customer details.
1. 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.
1. Display the names of customers who have not yet made a booking.

1. 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.
1. 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.
1. Display the names of all customers who have rented inflatables
1. Display the names of all customers who have rented chairs orinflatables
1. Display a count of the number of booking days of each customer
1. Display the total amount of money received from each customer. That is, display one one value per customer.

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

### Cite This Work

My Assignment Help (2020) Database Fundamentals [Online]. Available from: https://myassignmenthelp.com/free-samples/itda1001-database-fundamentals/case-study-of-party-hire.html
[Accessed 18 August 2022].

My Assignment Help. 'Database Fundamentals' (My Assignment Help, 2020) <https://myassignmenthelp.com/free-samples/itda1001-database-fundamentals/case-study-of-party-hire.html> accessed 18 August 2022.

My Assignment Help. Database Fundamentals [Internet]. My Assignment Help. 2020 [cited 18 August 2022]. Available from: https://myassignmenthelp.com/free-samples/itda1001-database-fundamentals/case-study-of-party-hire.html.

### Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the content removal request.

## 5% Cashback

On APP - grab it while it lasts!