What are the appropriate primary keys in each relation

Assignment Help Database Management System
Reference no: EM131685281

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

Verified Expert

Relational Model and Relational algebra are clearly a theoretical foundation for structuring the data in the Database Management Systems. While designing the database identifying keys plays a major role. Depending on the keys like Super key, Candidate Key, Primary Key and Foreign Key , redundancy can be reduced from the data which is stored in the Database. The document was prepared in Microsoft office word.

Reference no: EM131685281

Questions Cloud

Define the proliferation and use of nuclear energy : Define the proliferation and use of nuclear energy and its potential to impact the global climate
Key role in the growth of intermodal transportation : Containers have played a key role in the growth of intermodal transportation. Why?
Discuss the organisms materials in the soil : And I am assuming that this level would also be the most nutrient rich due to them breaking down the organisms/materials in the soil
Discuss how much volume reduction is achieved by compaction : If the waste in a landfill has an un-compacted bulk density of 8.3 lb/ft3 and the landfill compaction is 1400 lb/yd3, how much volume reduction is achieved
What are the appropriate primary keys in each relation : IT-244 Introduction to Databases Assignment. What are the appropriate primary keys in each relation? Identify at least four possible super keys
Define tanzanias population to double : How many years would you predict it would take for Tanzania's population to double
What services goods or activities does organization provide : What services, goods, or activities does the organization provide? Specifically, in terms of organizational structure, how are the two organizations different?
Discuss the medical education reform movement : Discuss the medical education reform movement and its impact on medical practice.
What are three roles of the president : What are 3 roles of the President? Which is the most important, why? Which is the least important, why? Do you think it is successful in government?

Reviews

len1685281

10/21/2017 1:34:23 AM

Subject: Database Management System. No Of Pages/Words: 5. Message : I need it fast please. This Assignment must be submitted on Blackboard via the allocated folder. Email submission will not be accepted. You are advised to make your work clear and well-presented, marks may be reduced for poor presentation. You MUST show all your work. Late submission will result in ZERO marks being awarded. The work should be your own, copying from students or other resources will result in ZERO marks. Use Times New Roman font for all your answers.

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