Create a table that is supposed to keep track of product

Assignment Help HR Management
Reference no: EM131417769

Chapter  Lab -Designing a database then querying it using joins

Purpose:

The purpose of this assignment is to continue to get you used to designing a database. Your database design will now take into account indexes, views, checks, cascading constraints, and different join types.

You do also have 2 debug assignments. I Strongly suggest doing these first.

Overall Description:

Congratulations! You have earned a contract to build the database system for the Cinemark at McCandless Crossing. Fortunately for you, your users know Exactly what data they want to keep track of and it's not crazy.Create a new workspace in APEX for this system (your debugs can also be run in this new workspace)

Cinemark wants to keep track of:

Customer data: First Name, Last Name, Address, Email, and total amount spent in the theatre in the last year (can be hardcoded into the database)

Movie data: Title, Date Released, Date Removed, Overall Rating (should only accept 1,2,3,4, or 5)

They also want to keep track of which customers have seen which movies.

It is your job to design the database and answer questions that the sales department has.

o The sales department wants to see which movies have had the most attendance. Generate a list of all movies, regardless of whether or not the movies have been seen at all, ordered by how many people have seen the movie DESC. Put this information in a view.

o They also want see which customers are their biggest movie attendees. Generate a customer list, ordered by the count of movies the customer has seen. Keep in mind some of your customers haven't seen any movies...they should still be on this list. Put this information into a view

o The sales department wants all of the data from the two queries above in a third, giant, query that gives them all of the information.

Put this information into a view

What to do (Detail):

- Think about the data you have to capture. Keep in mind that the list above is only the data that the customer wants to capture...you might need more than 2 tables (hint: you will likely need more than two tables because there will be a junction table involved)

- Draw out your design and map out the foreign keys, primary keys etc...

- Write a script that creates the database. If you decide to create cascading constraints. Specify in your document why you either did or did not decide to create cascading constraints. You are required to create at least 2 indexes, and a check on the overall rating of the movie.

- Insert data as specified above into the database. To test your design, you will be generating the test data. Data should include

o 20 customers

o 10 movies

o 15 customers who have seen two or more movies

o 2 customers who have seen one movie

o 3 customers who haven't seen any movies

o 2 movies who have not been seen by any customers

- Create the three views specified above for the sales department

o The sales department wants to see their most successful movies. Generate a list of all movies, regardless if they have had any customers or not. Put this information in a view

o They also want to know the data on customers regardless of what movies they, have or have not, been to. Put this information into a view

o The sales department wants all of the data from the two queries above in a third, giant, query that gives them all of the information. Put this information into a view

Deliverable

TWO scripts

1: A script that contains the creation of your database, constraints, indexes, and adds the data

2: A script that contains your view creations

A one-page document explaining why you made the choices you did for your database design and the data that you populated the database with. Explain your index choice. Also, explain your query design and why or why not you decided to cascade constraints and why your information for the sales department is in a view.Debug One

What the script is supposed to do: Creates a table that is supposed to keep track of Product information. The system is only supposed to accept "Tools" "Kitchen" "Sales" and "Other" as a type

Debug Two

What the script is supposed to do: Creates three tables for a pet store (includes a junction table. The marketing department would like to see a customer list and how much the customer has spent all time in the database. Make sure the list shows all customers, regardless of whether or not they have spent any money.

Attachment:- html.rar

Reference no: EM131417769

Questions Cloud

Impact on the implementation of the business plan : 1. Sphere of influence is complete, thoroughly discussed, and includes details to support the influence within the organization. 2. Impact on the implementation of the business plan is complete, thoroughly discussed, and includes details to support..
What is probability that a home for sale has pool or garage : What is the probability that a home for sale has a pool or a garage?- neither a pool nor a garage?- a pool but no garage?
Which is a common shortcoming of company vision statements : Which of the following is a common shortcoming of company vision statements? How it will treat employees and customers and the importance the company places of teamwork.
Are traveling to mexico and to canada disjoint events : What's the probability that someone who has traveled to Mexico has visited Canada, too?- Are traveling to Mexico and to Canada disjoint events? Explain.
Create a table that is supposed to keep track of product : What the script is supposed to do: Creates three tables for a pet store (includes a junction table. The marketing department would like to see a customer list and how much the customer has spent all time in the database. Make sure the list show..
Was the mexican-american war a just war : Was the United States achieving Manifest Destiny morally, ethically, economically, and politically justified? Why or why not? Was the Mexican-American War a just war? Why or why not
Are the species and sex of the animals independent : The local animal shelter in Exercise 8 reported that it currently has 24 dogs and 18 cats available for adoption; 8 of the dogs and 6 of the cats are male.- Are the species and sex of the animals independent? Explain.
The relationship between language and thinking : Consider the following quote by the philosopher Ludwig Wittgenstein, who believed that thought without language was impossible: "The limits of my language are the limits of my life."
Necessity for discharging an employee : Discuss what questions an employer (supervisor) should consider before terminating an employee. Discuss what actions an employer can take in order to reduce the necessity for discharging an employee.

Reviews

Write a Review

HR Management Questions & Answers

  As a software engineer you have been asked to write a paper

the human-computer interfaceas a software engineer you have been asked to write a paper that describes the use of

  Human capital and human resources managementemployees are

human capital and human resources managementemployees are valuable assets to an organization. how can human resource

  Evaluate the degree and quality of care that physicians

From the scenario, analyze the different and overlapping general roles of physicians and nurses as they apply to professional credentialing and subsequent patient safety and satisfaction. Determine the major ways in which these overlapping roles m..

  Compare and contrast management versus leadership

Compare and contrast management versus leadership

  Explain the pros and cons of hiring someone as an employee

The reasons why the person hired in each scenario is an employee or independent contractor. Explain the pros and cons of hiring someone as an employee versus an independent contractor.

  Determine this strategy from an ethical perspective

Important information about Staffing - Determine this strategy from an ethical perspective.

  Ow can dimensions of diversity impact a business

How can dimensions of diversity impact a business? How does diversity coordinate with "doing what is right"?

  Describing the informational systems

Create a 8- to 10-slide Microsoft® PowerPoint® presentation with speaker notes describing the informational systems selected.

  Human resource outsourcingcompanies outsource many of their

human resource outsourcingcompanies outsource many of their human resource functions. answer the following questions

  Which do you feel is the biggest challenge and why

Identify three challenges that a U.S. business person may encounter in a global environment. Which do you feel is the biggest challenge and why?

  Identify two strategies for developing the team as a whole

Create a communication plan for your performance improvement suggestions for three different audience types in the organization. Include at least one written communication sample piece. Identify as many details as possible that will need to be con..

  In pwc we nurture the learning and development culture with

1. in pwc we nurture a learning and development culture with the strong support of the efficient learning environment

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