Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

Problems

 

The problems use the customer, orderTbl, and Employee tables of the simplified Order Entry database. Chapters 4 and 10 extend the database to increase its usefulness. The customer table contains clients who have placed orders. The orderTbl contains basic facts about customer orders. The Employee table contains facts about employees who take orders. The primary keys of the tables are CustNo for Customer, EmpNo, for Employee, and OrdNo for orderTbl.

 

Customer

CustNo

CustFirstName

CustastName

CustCity

CustState

Custzip

CustBal

C0954327

Sheri

Gordon

Littleton

CO

80129-5543

$230.00

C1010398

Jim

Glussman

Danver

CO

80111-0033

$200.00

C2388597

Beth

Taylor

Seattle

WA

98103-1121

$500.00

C3340959

Betty

Wise

Seattle

WA

98178-3311

$200.00

C3499503

Bob

Mann

Monroe

WA

98013-1095

$0.00

C8543321

Ron

Thompson

Renton

WA

98666-1289

$85.00

 

Employee

EmpNo

EmpFirstName

EmpLastName

EmpPhone

EmpEmail

E1329594

Landi

Santos

(303)789-1234

LSantos@bigco.com

E8544399

Joe

Jenkins

(303)221-9875

JJenkins@bigco.com

E8843211

Amy

Tang

(303)556-4321

ATang@bigco.com

E9345771

Colin

White

(303)221-4453

CWhite@bigco.com

E9884325

Thomas

Johnson

(303)556-9987

TJohnson@bigco.com

E9954302

Mary

Hill

(303)556-9871

MHill@bigco.com

 

OrderTbl

OrdNo

OrdDate

CustNo

EmpNo

01116324

01/23/2010

C0954327

E8544399

02334661

01/14/2010

C0954327

E1329594

03331222

01/13/2010

C1010398

 

02233457

01/12/2010

C2388597

E9884325

04714645

01/11/2010

C2388597

E1329594

05511365

01/22/2010

C3340959

E9884325

07989497

01/16/2010

C3499503

E9345771

01656777

01/11/2010

C8543321

 

07959898

01/19/2010

C8543321

E8544399

 

1) Write a create table statement for the customer table. Choose data types appropriate  for the DBMS used in your course. Note that the custBalcolumn contain numeric data. The currency symbols are not stored in the database. The custFirstName and custLast     Name columns are required (not null).

2) write a create table statement for the Employee  table. Choose data types appropriate for the DBMS used in your course. The EmpFirstNames, EmpLastName, and EmpEMail columns are required (not null).

3)  write a create table statement for the orderTbl table. Choose data types appropriate for the DBMS  used in your course. The ordData column is required (not null).

4) Identify the foreign keys  and draw a relationship draw a relationship diagram for the simplified order entry database. The CustNo column references the customer table and the EmpNo column references the Employee table. For each relationship, identify the parent table and the child table.

5) Extend your create table statement from problem (3) with referential integrity constraints. Updates and deletes on related rows are restricted.

6) From examination of the sample data and your common understanding of  order entry business, are null values allowed for the foreign keys in the orderTbl table? Why or why not? Extend the create table statement in problem (5) to enforce the null value restrictions if any.

7) Extend your create table statement for the employee table (problem 2) with a unique constraint for EmpEMail. Use a named constraint clause for the unique constraint.

 

9) Show the result of a restrict operation that lists the customers residing in seattle, WA.

10) Show the result of a project operation that lists the CustNo, CustFirstName, CustLastName, column of the customer table.

 

12) Show the result of a natural join that combines the customer and orderTbltables.

 

15) Show the result of a one-sided outer join between the Employee and orderTbl table. Preserve the rows of the orderTbl table in the result.

16) Show the result of a full outer join between the Employee and orderTbl table.

17) Show the result of the restrict operation on customers where the condition is CustCity equals "Denver" or "Seattle" followed by a project operation to retain the CustNo. CustFirstName, CustLastName, and CustCity columns.

18) Show the result of a natural join that combines the customer and orderTbl tables followed by a restrict operation to retain only the Colorado customers (CustState="CO").

19) Show the result of a summarize operation on customer. The grouping column is CustState and the aggregate calculate is COUNT. COUNT shows the number of rows with the same value for the grouping column.

20) Show the result of a summarized operation on customer. The grouping column is CustState and the aggregate calculations are the minimum and maximum CustBal values.

21) what tables are required to show the CustLastName, EmpLastName, and OrdNo columns. In the result table?

 

24) What relational algebra operator do you use to find products contained in every order? What relational algebra operator do you use to find products contained in any order?

25) Are the customer and Employee tables union compatible?  Why or why not?

 

27) Using the database after problem (23), what tables must be combined to list the products names ordered by customer number C 09543227

 

 

 

 

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M91349509
  • Price:- $30

Guranteed 24 Hours Delivery, In Price:- $30

Have any Question?


Related Questions in DBMS

This is a starting out with visual basic programming

This is a starting out with visual basic programming problem, meaning its a basic programming nothing advanced. Question: Add a linq statement to the combo box text-changed event to dispaly the city field of the selected ...

Answer the following question explain the difference

Answer the following Question : Explain the difference between a database management system (DBMS) and a database. Are Microsoft Access, SQL Server, and Oracle examples of databases or database management systems (DBMS)?

Real time analytics - data analytics assignment -this is a

Real Time Analytics - Data Analytics Assignment - This is a business analytics project aimed at generating innovative analytics solutions for a Global Food Consulting firm working in the area of Animal agriculture and fa ...

Question 1 unified communications system eg email

Question: 1. Unified Communications System (e.g., email, conferencing, and messaging) - The local area network is slower than needed, especially for newer, cloud-based applications. The email system needs refurbishment a ...

Assignmentqueries functions and triggersdatabase

Assignment Queries, Functions and Triggers Database Systems Aims The aims of this assignment are to: formulate SQL queries; populate an RDBMS with a real dataset, and analyse the data; design test data for testing SQL qu ...

Students will select a situation or problem from their

Students will select a situation or problem from their company as a course project that can be solved using a database system. Using MS Access, or MS SQL Server Express, students will create a relational database model o ...

Question talk about the importance of pulling data from

Question : Talk about the importance of pulling data from worksheets into a single sheet also the ways excel could be a solution to a complex challenge. The response must be typed, single spaced, must be in times new rom ...

Question suppose we have two kinds of doctors hospital

Question : Suppose we have two kinds of doctors: hospital doctors and family physicians. In addition to the doctor's id number, name, specialty, and years of experience, we want to record the hospital name for the hospit ...

Tableau is business intelligence software that helps people

Tableau is business intelligence software that helps people see and understand their data. Fast Analytics Connect and visualize your data in minutes. Tableau is 10 to 100x faster than existing solutions. Ease of Use Anyo ...

Your taskyou have been commissioned to develop a database

Your task You have been commissioned to develop a database system that is capable of keeping records for FU's table tennis matches from now on. The database needs to keep a record of: - All team information, including pl ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As