Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

Introduction to Databases Assignment -

Learning Outcome(s):

  • Define the relational model.
  • Identify the appropriate primary key and foreign key in a given relation.
  • Describe different types of relational model keys and their use in databases.
  • Define the operations of the relational algebra.

Question One - Consider the following three relations:

660_figure.png

For each of the following relational expressions, compute the result on the above relations and submit only the final answer. For example, for query: πB,D(S), the result should be entered as: {(a, x), (b, y), (b, x), (c, y)}.

a. πA,D(R×S)

b. πA,D(R∞S)

c. πE(T)-πE(S∞T)

a. πA,D(R×S)=?**(1, x), (1, y), (2, x), (2, y), (3, x), (3, y)**

b. πA,D(R∞S)=?**(1, x), (1, y), (2, x), (2, y), (3, y)**

c. πE(T)-πE(S∞T) =** (3) **

Question Two -  Consider the Bank database:

410_figure1.png

a. What are the appropriate primary keys in each relation?

b. Given your choice of primary keys, identify appropriate foreign keys.

Question Three - Consider the relational database of instructor:

ID

Name

DOB

Gender

Dept_No

E101

Ahmed

15-JUL-1986

M

2

E103

Ali

04-MAY-1989

M

2

E104

Sara

29-OCT-1987

F

1

E102

Omar

20-MAY-1988

M

3

E105

Hind

23-JAN-1980

F

4

a. Identify at least four possible super keys?

b. Identify at least three possible candidate keys?

Question Four - Employee (Id, emp_name, age, occupation_Id, city_Id)

Occupation (occupation_id, occup_name)

City (city_id, city_name)

Consider the above relational database. Give an expression in the relational algebra to express each of the following queries:

a. Find the names and ages of all employees who work in "New York".

b. Find the names and cities of all employees who work as "Software Engineer".

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M92493980
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in DBMS

Database design and development assignment -assessment task

Database Design and Development Assignment - Assessment task - 1. Normalization a) Map the ERD, from the sample solution, into a set of relations in at least Third Normal Form (3NF). You must ensure that your relations m ...

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

Question a suppose you are a marathon runner that can run a

Question : a) Suppose you are a marathon runner that can run a maximum of n miles on a single bottle of water. You are given a map of your marathon route with all the water stations marked. Design an efficient algorithm ...

Sql assignmentin these exercises youll enter and run your

SQL Assignment In these exercises, you'll enter and run your own SELECT statements. You will use the MyGuitarShop database for these queries. If you do not already have the MyGuitarShop database, the SQL script and the i ...

Instructionsfor decades relational databases remained

Instructions For decades, relational databases remained essentially unchanged; data was segmented into specific chunks for columns, slots, and repositories, also called structured data. However, in this Internet of Thing ...

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

You are responsible for keeping track of meal expenses for

You are responsible for keeping track of meal expenses for ten employees while at a business lunch to which your employer has invited you to attend. Write an algorithm that inputs the lunch costs for each the ten employe ...

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

Systems analysis project scenic routes operates a bus

Systems analysis project Scenic Routes operates a bus company that specializes in travelling on secondary roads, rather than Interstate highways. Their slogan is: "It Takes a Little Longer, But It's Scenic." The firm nee ...

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

  • 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