Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

The problems below use the Customer, OrderTbl, and Employee tables of a simplified Order Entry database.  The Customer table records clients who have placed orders. The OrderTbl contains the 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.

The following is the TABLE definitions for the first three tables showing the PRIMARY KEY constraints. 

TABLE Customer has the following attributes
CustNo            CHAR(8)
CustFirstName     VARCHAR2(20)
CustLastName      VARCHAR2(30)
CustCity          VARCHAR2(30)
CustState         CHAR(2)
CustZip           CHAR(10)
CustBal           NUMBER(12,2)
 
CustNo is the  PRIMARY KEY

 

TABLE Employee has the following attributes
EmpNo             CHAR(8)
EmpFirstName      VARCHAR2(20)
EmpLastName       VARCHAR2(30)
EmpPhone          CHAR(15)

EmpNo is the PRIMARY KEY

 

TABLE OrderTbl has the following attributes
OrdNo             CHAR(8)
OrdDate           DATE
CustNo            CHAR(8)
EmpNo             CHAR(8)

OrdNo is the PRIMARY KEY

 

Step 1 - Drawing the first ER Diagram

Identify the foreign key columns in the table structures above and draw a relationship diagram depicting the relationships between the tables. In the Order Table (OrderTbl in the diagram), the CustNo column references the Customer table and the EmpNo column references the Employee table. For each relationship, identify the table on the "1" side of the relationship and the table on the "Many" side.

Step 2 - Should a NULL be allowed?

From examination of the sample data and your current understanding of businesses in which orders could be placed either in person, over the phone, or over the internet determine if it would be permissible for null values to be allowed for the foreign key Empno in the OrderTbl table?  This column would reference back to the empno column in the employee table. Why or why not?

OrdNo

OrdDate

CustNo

EmpNo

O1656777

02/11/2000

C8543321

 

O7959898

02/19/2000

C8543321

E8544399

Step 3 - Drawing the second ER Diagram

In a separate diagram, extend your relationship diagram from problem 1 by adding two tables (OrdLine and Product). Table definitions for the table structures and primary keys constraints are shown below.  You will need to identify the FOREIGN KEY(s) to complete this problem.  When finished you should have a total of 5 tables represented in your diagram for this problem.

TABLE Product has the following attributes
ProdNo                    CHAR(8)
ProdName               VARCHAR2(20)

ProdNo is the PRIMARY KEY

 

TABLE OrdLine has the following attributes
OrdNo                     CHAR(8)
ProdNo                    CHAR(8)
Qty                           NUMBER(5)

The combination of OrdNo and Prodno is the PRIMARY KEY

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M91620396
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in DBMS

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)?

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 ...

The case study company received a detailed report from the

The case study company received a detailed report from the ECM consultant with a detailed list of data requirements, tools, and processes that are currently used to manage this data. The chief executive officer (CEO) and ...

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 ...

Question as explained throughout this course entity

Question: As explained throughout this course, entity relationship modeling is a critical element of database design. If the database is not properly modeled, it is unlikely that the database will be properly developed. ...

Assignmenta restaurant is designing a database to keep

Assignment A restaurant is designing a database to keep track of customer services. A customer is defined as a customer ID, name, address and a telephone number. Customers are served by employees. Each employee is define ...

Need an expert in the fields of system design to handle

Need an expert in the fields of system design to handle this project This is a system analysis and design project, not a research project. Refer to the list of deliverables in the instructions in the assignment to make s ...

Objectivethe objective of this lab is to be familiar with a

OBJECTIVE: The objective of this lab is to be familiar with a process in big data modeling. You're required to produce three big data models using the MS PowerPoint software. This tool is available on UMUC Virtual Deskto ...

Questionsuppose a prolog database exists that gives

Question: Suppose a Prolog database exists that gives information about states and capital cities. Some cities are big, others small. Some states are eastern, others are western. a. Write a query to find all the small ca ...

Case study problem 1 the case study company has experienced

Case Study: Problem 1 The case study company has experienced rapid growth in both the size of its client base and also in the services provided to clients. Unfortunately, the growth in data management policies, procedure ...

  • 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