How many ship-to-addresses does each customer have

Assignment Help Database Management System
Reference no: EM131740328

Assignment

Directions: Write the answer to an exam question on this document immediately following the question. Do not provideSQL commands on this document. Submit SQL script files separately. Write the result of a queryafter the labelThe result is.

The instructor or TA will execute all the scripts submitted by each student to verify correctness and completeness ... all scripts must execute correctly without error for consideration for credit.

Question 1:

A data model of a shopping application allows a customer to have only one billing address and at least one ship-to-addresses.

a. Describe how you would implement the customer billing and shipping addresses as an Oracle relational database. Be sure to describe how the database uniquely identifies the billing addresses for each customer.

b. Describe how you would implement the customer billing and shipping addresses as an Oracle object-relational database. Be sure to identify the data type or structure that allows more for than one value for the billing address.

c. Describe how you would implement the customer billing and shipping addresses as an Oracle relational database that allows for hierarchical queries. Be sure to identify the data type or structure that allows more for than one value for the billing address.

d. Create an SQL script that contains

i. The DDL to create each database

ii. The DML to add data to each database

iii. SQL commands to query each database:

1. How many ship-to-addresses does each customer have?

2. How many customers have just one ship-to-address?

3. How many customers have a ship-to-address that is the same as the billing address?

iv. Documentation that describes the purpose and motivation behind the SQL command

· Submit a copy of the Oracle script as a separate file with the name Q1_Final.SQL to the assignment folder for the final exam.

Reference no: EM131740328

Questions Cloud

Discuss a cost-benefit and cost-effective analysis : Using the story about Robin Hood, discuss a cost-benefit and cost-effective analysis of the proposed assessment and contingency plan.
What concerns should you have regarding the conversations : You and a former classmate started a computer software company five years ago. Originally, the two of you were the owners and only employees.
What is your vision for your successful business : What is your vision for your successful business? What would you do go gain buy-in from your entire service team?
Revise prior probabilities in light of friends track record : What is the posterior probability of a good market given that his friend has provided an unfavourable market prediction
How many ship-to-addresses does each customer have : Create an SQL script that contains. How many ship-to-addresses does each customer have? How many customers have just one ship-to-address?
Requirements of the sarbanes-oxley act : You and two partners operate a graphics design and printing company. The success of this business relates to the high-quality service and products you provide.
Majority of organizations today recognize : The majority of organizations today recognize that their long-term survival depends on their ability to adapt to changes in their environment.
Assign employees more difficult work : A manager seems to assign employees more difficult work tasks based on a belief that these particular employees are trying to organize workers.
What is the holding of the trial court : Volvo Trucks North America, Inc., sells its heavy-duty trucks through franchised dealers who compete in a competitive bidding process typically with dealers.

Reviews

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