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

  Management studio for database design

1.Use the Management Studio to create a new database called MyWebDB using the default settings. (Ifthe database already exists, use the Management Studio to delete it and then recreate it.) 2. Use the Management Studio to create the following tables ..

  Writes data from an array list to data basein proper format

Writes data from an array list to the data basein proper format. Add persistent data storage to your Week 5 Lab using the MySQL Database.

  Write a two pages report on database

Write a 500 words 2 page report on Database. Each individual will complete and submit a report based on ONE of the three scenarios.

  Analyze reason why entity relationship modeling is important

Analyze the key reasons why entity relationship modeling is important, and determine at least way in which it impacts the overall development of the database.

  Creation of the integration layer

Creation of the integration layer - E-R diagram of your integration layer and Insert the same records in the schema of local DB2

  List the average salary for employees of each age

Suppose you know that the following queries are the six most common queries in the workload for this corporation and that all six are roughly equivalent in frequency and importance

  List all the functional dependencies that this relation

Assume that the value of attribute Z of the last record in the relation is changed from z3 to z2. Now list all the functional dependenciesthat this relation instance satis?es.

  Create an application that allows the user to enter the data

Create an application that allows the user to enter the following employee data

  Create the star schema for the data warehouse

Include any SQL needed for the database, the DDL, the DML to manage the customer and employee rows, and the 3 SELECT statements.

  Explain the disaster plan you would set up for the bank

Explain the disaster plan you would set up for the bank. Make sure you justify the disaster plan chosen and include key metrics such as allowed down time.

  Write an essay on marketing management

The customer is always right -The customer doesn't know what's best. It's the baker's (marketer's) job to educate him. The above statements succinctly point out a subtle battle which rages within the marketing discipline.

  Plot of the relationship between journey time and cost

calculate what percentage of prices are missing and suggest a way to deal with both missing prices and other missing data before using the dataset for analysis

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