Answer the given queries in Oracle SQL

Assignment Help Database Management System
Reference no: EM132286278

Data and Information Management Assignment -

1. Create the database for Continental Palms Hardware Company (CPHC) in Oracle. Enforce as many integrity constraints as you can.

2. Enter the following sample data into the database.

3. Answer the following queries in Oracle SQL. Include all SQL statements in script file. The statements must be tested. Sample results are available on the G: drive.

  • Get the ID, first name, last name, and birthdate of every employee of CPHC.
  • Get the ID, name (first name plus last name), and age of every female employee of CPHC.
  • Get the ID, name, and age of every female salesperson.
  • Get the ID, name, and age of every female salesperson who sells some products manufactured by Stanley.
  • Get the following about every female salesperson who sells some products manufactured by Stanley: ID, name, age, and products (UPC and manufacturer) authorized to sell. Include products not manufactured by Stanley too.
  • Get the following about every female salesperson who sells some products manufactured by Stanley: ID, name, age, number of products authorized to sell, and number of manufacturers of these products.
  • Get the following about every female salesperson who sells products from multiple manufactures or more than five products: ID, name, age, number of products authorized to sell, and number of manufacturers of these products.
  • Get the following about every female salesperson who sells products from multiple manufactures or more than five products, but does not sell any product by Stanley: ID, name, age, number of products authorized to sell, and number of manufacturers of these products.
  • Get the ID, name, age, and manager name (if any) of every female salesperson.
  • Get the ID, name and age of every female salesperson who sells all of the products manufactured by Stanley. (Hint: This query involves the Division operation in relational algebra, but is notoriously difficult to write in SQL. Consider using sub-queries. Restate the query as "Find every female salesperson, such that there does NOT exist any product manufactured by Staley that the salesperson does NOT sell").

Note - Just need the answers of question number 3, in which only needed 10 SQL queries. No data loading and database is required.

Attachment:- Assignment File.rar

Reference no: EM132286278

Questions Cloud

What confidence level was used to create : What confidence level was used to create this confidence interval?
Probability of obtaining 10 successes out of 15 trials : Assuming the probability of success in one trial is 80%, what will be the probability of obtaining 10 successes out of 15 trials?
Width of the resulting confidence interval : In your opinion, can we generalize this 70% reduction in the width of the confidence interval to all cases and situations? In other words, is it always
Inserting the appropriate probability : If a = 0.14, and ß = 0.13, complete the following questions by inserting the appropriate probability of each.
Answer the given queries in Oracle SQL : BUS-ADM 749 Data and Information Management Assignment, University of Wisconsin-Milwaukee, USA. Answer the following queries in Oracle SQL
Researcher use to create this confidence interval : A researcher calculated a 75% confidence interval for the proportion of females in a class who wear hats on a regular basis.
Total credit card debt : Eight male and eight female college students who have credit cards were surveyed and asked their total credit card debt. The responses are given below in dollar
Wamap approach and calculations : Note: You should carefully round any z-values you calculate to 4 decimal places to match wamap's approach and calculations.
Did you have hard feeling toward the person who punished you : Punishment can be a controversial topic, Did you repeat the behavior? Did you have any hard feelings toward the person who punished you

Reviews

Write a Review

Database Management System Questions & Answers

  Create a select querybased on the tblpatient table

Create a new index for the tblTherapist table based on the Lastfield. The index should Allow for duplicate values. Save and close the tblTherapist table. Create a Select querybased on the tblPatient table.

  List the sales for each customer

Each query is worth 2 marks. These tables exist in sphinx and are owned by the user dtoohey. You may, if you wish, create your own copies of the tables under your own account. If you do so, you should ensure that you copy the sample data in dtoohe..

  What platforms will app run on or be accessible from

What platforms will App run on or be accessible from? iOS? Android? Windows? Browser-only? Multiple? Others?

  Identify three characteristics associated with big data

What is the difference between projecting and joining? -  What is big data? Identify three characteristics associated with big data.

  Draw at a context diagram and a level-0 diagram

Draw at a context diagram and a level-0 diagram. In drawing these diagrams, if you discover that the narrative is incomplete, make up reasonable explanations to complete the story. Provide these extra explanations along with the diagrams.

  The primary causes of the data breach

Case Study: Data Breaches and Regulatory Requirements, Describe the data breach incident and the primary causes of the data breach

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Develop a use-case description for each major use case

Create an activity diagram for the business process described in this case through the use of graphical tools in Microsoft Word or Visio.

  Prioritize your threats based on their risk value

Define who would be included in the assessment of the database environment - Identify the assets that you are protecting and define the threats you are protecting yourself against.

  Create a vendor database and related reports

Create a vendor database and related reports and queries to capture contact information for potential PC vendors. This information will be used to populate an MS Access database.

  Prepare table which is in first normal form

Prepare the example of table which is in first normal form but not in second normal form and example of a table which is in second normal form but not in third normal form.

  What dba must be aware of to maintain regulatory compliance

Describe in 500 words what a dba must be aware of to maintain good regulatory compliance when moving to the cloud. Cite your sources. Do not copy.

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