Suppose that you are given a relation R = (A,B,C,D,E) with the followingfunctional dependencies: {CE → D,D → B,C →A}. Find all candidate keys. Suppose that you are given a relation R = (A,B,C,D,E) with the following functional dependencies: {BC → ADE, D → B}. Find all candidate keys. You are given the following set of functional dependencies for a relation R(A,B,C,D,E,F), F = {AB → C, DC → AE, E → F}. What are the keys of this relation?

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
  1. A shop is having products which it buys from the supplier and sales it to the customer. The shop gives products on credit and keeps the record of amount due on the customer. The shop maintains the sales records of every purchase, like customer detail, date of purchase, total amount and list of products purchased. The owner of the shop wants a software for his trading business. List the files required to maintain this system and details of data in these files.

 

  1. List down the files required and details of data inside those files, for a university system.
  1. Suppose that you are given a relation R = (A,B,C,D,E) with the followingfunctional dependencies: {CE → D,D → B,C →A}.

Find all candidate keys.

  1. Suppose that you are given a relation R = (A,B,C,D,E) with the following functional dependencies:

{BC → ADE, D → B}.

Find all candidate keys.

  1. You are given the following set of functional dependencies for a relation R(A,B,C,D,E,F),

F = {AB → C, DC → AE, E → F}.

What are the keys of this relation?

  1. Write the SQL command for following
  2. Teams ( Teamcode , Teamname, Clubname, total_member, dateofstart, teammanager,teamcoach)
  3. Players (Teamcode, playername, dateofbirth, specialposition, Numberofgoal, number of tournaments, Tshirtno)
  • Tournament (Tournament_code, Tname, Year, Hostcountry, numberofteams, winnerteam, goldenboot)
  1. Tournament_teams (Tournament_code, teamcode, totalyellocard, totalredcard, numberofgoals)
  2. Matchdetail (tournament_code, Mtcode, Team1code,team2code, winnerteamecode, matchdate ,team1goal,team2goal,refree)
  3. Write commands to create the above tables.

Teamcode in player table is primary key.

Teamcode in players, tournament_Team table is foreign key.

  1. Show the players of winner team of the year 2010.
  2. Show the team details of the team which got maximum yellocard.
  3. Show the team name of the team which won with maximum goal difference with the opposite team in a match.
  4. Show the details of the oldest team

 

  1. Write the relational algebra expressions for the following queries
  2. List the players who played more than 5 tournaments
  3. List the teamcode, playername of all the players who play with Tshirtno 7.
  4. List all the players of the team whose coach is “Pep Guardiola”.
  5. List the

 

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Procedures in SQL
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education