I need to double check my answer to insure I did it right. Thanky you.  Question:  Gamer:                            (UserID, Name, Age, Address, City, Favorite-Game, Rank)  Game:                             (GameID, Name, Company, Release-Year, Version)  Store:                              (StoreID, Name, Address, City)  WhereToFind:                 (GameID, StoreID, Price)  Category:                        (GameID, Category-Name)  From the relational schemas illustrated above, use the different relational algebra operators and operations (ρ, σ, π, ⋂, ⋃, -, ⨝) discussed in class to build the following queries: 1. List -by name and ID- each gamer who lives in the city of Chicago, with a rank of 5, and is aged between 15 (included) and 30 (included). 2. List games -by name and release year- that are not in the “Action” category. 3. Since each game can fall within several categories, list games -by name and release year- that are in the “Action” category and also in the “Role-Playing” category

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter1: Overview Of Database Concepts
Section: Chapter Questions
Problem 16MC
icon
Related questions
Question

I need to double check my answer to insure I did it right. Thanky you. 

Question: 

Gamer:                            (UserID, Name, Age, Address, City, Favorite-Game, Rank) 
Game:                             (GameID, Name, Company, Release-Year, Version) 
Store:                              (StoreID, Name, Address, City) 
WhereToFind:                 (GameID, StoreID, Price) 
Category:                        (GameID, Category-Name) 

From the relational schemas illustrated above, use the different relational algebra operators and operations (ρ, σ, π, ⋂, ⋃, -, ⨝) discussed in class to build the following queries:

1. List -by name and ID- each gamer who lives in the city of Chicago, with a rank of 5, and is aged between 15 (included) and 30 (included).
2. List games -by name and release year- that are not in the “Action” category.
3. Since each game can fall within several categories, list games -by name and release year- that are in the “Action” category and also in the “Role-Playing” category

 

My answers: 

1) π UserID, Name ( σ City = ‘Chicago’ ∧ Rank = 5 ∧ Age < 15 ∧ > 30 ( Gamer )) 

2) π Name, Release-Year (Game) ⨝Game, GameID = Category, GameID ∧ Category-Name <> “Action” ( Category )

3) π Name, Release-Year (Game) ⨝Game, GameID = Category, GameID ∧ Category-Name = “Action” ∧ Category-Name = “Role-Playing” ( Category )

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Database Development
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
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781337097536
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning