Create an er diagram from the scenario

Assignment Help Database Management System
Reference no: EM131975124

Task 1

Create an MS Word document named "Your Given Name - Your Student Number - Party Kids.docx" e.g. Harpreet - 123456 - Party Kids.docx.

Create an ER Diagram from the above scenario, being sure to:

Use Crow's Foot Notation

Mark cardinality, existence, primary keys (with an underline), and foreign keys (with the letters "FK" in brackets).

Ensure the entities are in a normalised state

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.

Place your name and student number within the drawing

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:

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.

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

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

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]

Use a SELECT statement to display full details of all customers

Change the address of John Smith to 15/1 Flinders Street and then display the name and address only of all customers
Display the details of all customers whose first name that starts with the letter "J"
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.

Delete John P Smith from the database

Add a 2nd table to your 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.

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

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

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.

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

Task 2b

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.

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.

Display the names of all customers who have rented inflatables

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

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

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

Task 3

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

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

Verified Expert

The solution file is prepared in ms word which is based on party hire case study. It has ER diagram for party hire and database created in my sql server. We executed create, insert and updated quires in my sql server and all queries of the screen shots are attached in the solution. Other than basic queries, the solution file has advanced queries to retrieve data from database. The references are included as per APA format.

Reference no: EM131975124

Questions Cloud

Calculate the required rate of return on the stock : Finding the Required Return Juggernaut Satellite Corporation earned $18 million for the fiscal year ending yesterday. The firm also paid out 30 percent.
Discuss the meaning and relevance of sovereign risk : Discuss the meaning and relevance of “sovereign risk”, and the potential remedies for a financial institution.
What is the chance of an individual winning : What is the chance of an individual winning more than $200 dollar in 2 hours playing the type A slot machine?
What is net present value if cost of capital is ten percent : What is the net present value if the cost of capital is 10 percent? Use the time value of money charts for your calculations.
Create an er diagram from the scenario : ITDA1001 - Database Fundamentals - Write a T-SQL comment above each SQL statement you write, stating your name, the task you are solving
What is the firm cost of capital before taxes : A firm has 40,000 shares whose current price is $80.75. Those stockholders expect a return of 15%. The firm has a 2-year loan of $900,000 at 6.4%.
Calculate continuously compounded risk-free interest rate : Calculate the continuously compounded risk-free interest rate.
Local high school different than at the national level : Is the smoking behavior at the local high school different than at the national level?
Prepare a schedule of cash collections from sales for august : Office World Inc. has cash and carry customers and credit customers. Prepare a schedule of cash collections from sales for August, September, and October.

Reviews

len1975124

5/8/2018 5:49:33 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

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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