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

  Improve problem solving capabilities within organization

Types of teams as to their effectiveness that will improve problem solving capabilities within organizations.

  Influence tactics help in reducing organizations politics

Explain the different types of influence tactics that will be of a help “if adopted” in reducing the organizational politics.

  Report on citigroup''s hr service level agreement

Human Resources or Human Resource Management deals with HR Service Level Agreement. HR Service Level Agreement is an agreement made between the employer and the employee, which states that the employee would work under any client and sometimes any ti..

  A project report on hrm

Human Resource Management as the name suggests, it is a management discipline which deals with the human i.e. the workforce aspect of organizations. Need and practices of HRM are inevitable in present scenario of extreme competition where "Talent War..

  Hrp: recruitment and selection

Recruitment and Selection is the initial ladder of any Human Resource Planning process and contains an immense significance for any organisation.

  A project report on study of statutory complainces

Statutory compliance and its immense knowledge are crucial to be understood in an organization. It contains all the forms, procedures and acts applicable in a company.

  Operant conditioning and Reinforcement

Operant conditioning is a learning process where behaviour is controlled by its consequences. In this process an individual's behaviour can be modified through the use of positive or negative reinforcement.

  Effectiveness of training programs in achieving customers an

The main motive for conducting this research is to provide broad range of research of the literature and their reviews related to training and development and assisting the employees in providing customers satisfaction.

  A critical analysis of hr processes and practices in fedex c

FedEx is illustrious for its novel HR processes and practices that have greatly accounted for its success.

  Integrating culture and diversity in decision making

People in the organization are known as Google where they share common goals and have common vision.

  Impact of employee attrition on people management in organis

Talent management implies recognizing a person's inherent skills, traits, personality and offering him a matching job.

  Labour dissonance at maruti suzuki india limited: a case stu

This Case Study focuses on various issues related to Labour Unrest at Maruti Suzuki India Limited.

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