1. Solve the following relational expressions for above relations. a. PName(RAge>25(User)) b. Rid>20Age!=31(User) c. RUser.Occupationld=DOccupation.Occupationld(User X Occupation) d. User i Occupation City

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
icon
Concept explainers
Question
User
Id
Name
Age
Gender
Occupationld
Cityld
EBE
John
25
Male
1
2
Sara
20
Female
3
4
3
Victor
31
Male
2
Jane
27
Female
3
Occupationld
OccupationName
Cityld
CityName
Software Engineer
Halifax
2
Accountant
Calgary
3
Pharmacist
3
Boston
Library Assistant
New York
5
Toronto
Occupation
City
1. Solve the following relational expressions for above relations.
a. PName(RAge>25(User))
b. Rid>20Age!=31(User)
c. Ruser Occupationld=DOccupation.Occupationld(User X
Occupation)
d. User l Occupation City
e. PName, Gender(RCityName="Boston"(User ) City))
Consider the following schema:
Suppliers (sid : integer, sname : string, address : string)
Parts (pid : integer, pname : string, color : string)
Catalog (sid : integer, pid : integer, cost : real)
The key fields are underlined and domain of each field is listed after the
field name
f. Find name of suppliers
g. Find all parts whose id is greater then 45
h. Show list of addresses of supliers.
Transcribed Image Text:User Id Name Age Gender Occupationld Cityld EBE John 25 Male 1 2 Sara 20 Female 3 4 3 Victor 31 Male 2 Jane 27 Female 3 Occupationld OccupationName Cityld CityName Software Engineer Halifax 2 Accountant Calgary 3 Pharmacist 3 Boston Library Assistant New York 5 Toronto Occupation City 1. Solve the following relational expressions for above relations. a. PName(RAge>25(User)) b. Rid>20Age!=31(User) c. Ruser Occupationld=DOccupation.Occupationld(User X Occupation) d. User l Occupation City e. PName, Gender(RCityName="Boston"(User ) City)) Consider the following schema: Suppliers (sid : integer, sname : string, address : string) Parts (pid : integer, pname : string, color : string) Catalog (sid : integer, pid : integer, cost : real) The key fields are underlined and domain of each field is listed after the field name f. Find name of suppliers g. Find all parts whose id is greater then 45 h. Show list of addresses of supliers.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Query Syntax
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.
Similar questions
  • SEE MORE QUESTIONS
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