Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the simple SalesRep-Worksin-SalesArea database schema that contains three files described as follows, answer the following questions with regards to this database. SalesRep (SRid: integer,

Given the simple SalesRep-Worksin-SalesArea database schema that contains three files described as follows, answer the following questions with regards to this database.

SalesRep (SRid: integer, SRname: string, SRage: integer, salary: real)

Worksin (SRid: integer, Arid: integer, hours: integer)

SalesArea (Arid: integer, Aname: string, city: string, budget: real, managerid: integer) Note : SRid, SRname, SRage, salary are the sales rep id, name, age and salary respectively. Also, hours is the number of hours worked by sales rep in the sales area. The rest of the attributes Arid, Aname, city, budget and managerid are the area id, name, location, budget and managerid respectively. A manager is a sales rep.

2. Recall that a database has many types of users, each of whom may require a different view of the database. For example, one user of the SalesRep-Worksin-SalesArea database of question 1 may be accessing and printing the details and salaries of each Sales rep frequently and thus a view for this user is created. Another view for this database is checking that Sales area has available budget before expenditure such as paying salaries.

  1. Using this SalesRep-Worksin-SalesArea database, give 2 additional views that may be needed by other user groups for the database. (5
  2. Give 5 examples from many of the different types of key, domain, foreign key, entity and semantic integrity constraints that you think can apply to the SalesRep-Worksin-SalesArea database of question 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions

Question

Please show your work in detail for all the questions. Thank you!

Answered: 1 week ago

Question

4. Explain the characteristics of successful mentoring programs.

Answered: 1 week ago