Build a database named partykids

Assignment Help Database Management System
Reference no: EM131998906

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

Reference no: EM131998906

Questions Cloud

Which new securities are originally sold to investors : The market in which new securities are originally sold to investors is called the _____ market.
Linear measurement scale for a variable : A linear measurement scale for a variable v is one for which fv (r and s) = afv (r) + bfv(s), where a and b are constants between 0 and 1.
Discuss different dimensions and complexity of globalization : Explore a variety of perspectives on the different dimensions and complexity of globalization. Analyze significant economic questions according to the standards
Net present value and profitability index : Explain the differences and similarities between net present value (NPV) and the profitability index.
Build a database named partykids : ITDA1001 - Database Fundamentals - Create all the tables you have drawn up in your ER Diagram and build the relationships between them
How much tread wears off of tire per revolution : The thread of a car tire is initially 0.5 cm thick. The tire is safe to drive on as long as it has at least 0.2 cm of tread. Under normal driving conditions
Clean price of this bond if the market rate of return : What is the clean price of this bond if the market rate of return is 6.5 percent?
How old must you be to be included in the lf : How OLD must you be to be INCLUDED in the LF?? What are the FOUR "Institutions" in which you CANNOT be?
Explain the challenges in measuring consumer surplus : Explain the challenges in measuring consumer surplus of a free product like major online applications, such as Facebook and Google Search.

Reviews

len1998906

5/28/2018 5:14:31 AM

The submission date is specified on your Moodle page at the Assignment dropbox. Format your MS Word document neatly and professionally before uploading it. Do not submit Microsoft SQL Server files or links to any other files. Only one MS Word document per student will be opened and all other files will be ignored.

Write a Review

Database Management System Questions & Answers

  Create an end of project presentation to the client

Demonstrate written communication skills by understanding basic information communication and technology (ICT) terminology for effective communication and applying it within a business environment

  Examine the common threats to data systems like web

suppose that you are currently employed as an information security manager for a medium-sized software development and

  Bioinformatics for representing sequence annotation

The GFF3 format is a commonly-used one in bioinformatics for representing sequence annotation and which ID (cv_id) corresponds to the GO ontology stored in the database and how many controlled vocabulary terms (cvterm table) are linked to the GO onto..

  Write a join query that for every order

Write a join query that for every order placed on September 5, 1998, (use '05-SEP-1998') will list the order number and order date along with the customer number, last name, and first name of the customer who placed the order.

  Discuss considerations for implementing an database system

Discuss the considerations for implementing an operating and database system. Recommend the optimum system, considering the types of revenue and expense transactions for this company.

  What is the predicted annual credit card charge

Develop an estimated regression equation with annual income and household size as the independent variables. Discuss your findings.

  Determine functional dependencies of table

Using your knowledge of Premiere Products, determine the functional dependencies that exist in the following table.

  Create a query based on invoice table

Task - Write SQL statements to answer the following questions from the 'assignment5' Create a query based on invoice table to show a 15% increase on tax

  Demonstrates each relationship strength classification

Using the classifications from part one of this discussion; provide a real word scenario that demonstrates each relationship strength classification.

  Write select statement which returns three columns

Write a SELECT statement which returns three columns: VendorName, InvoiceCount, and InvoiceSum. InvoiceCount is the count of the number of invoices, and InvoiceSum is the sum of the InvoiceTotal column.

  Prototyping part of a database systems application

The assignment comprises designing and prototyping part of a database systems application. Students should form themselves into groups of up to 4 members and pass details of the members of their group to the course leader.

  How to use asynctask to perform the database update

How to use AsyncTask to perform the database update. Modify the code created for the Unit 3 assignment to use AsyncTask to perform the database updates.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd