MEMBER (memberID (PK), profession, name, address, telNo, areaCode (FK) VOLUNTEER (volunteerID (PK), typeVolunteer, description) MEMBER_VOLUNTEER  (memberID  (PK),  volunteerID  (PK),  dateJoin,  dateDisjoin, allowance)   This query is to select the names, address, and telephone number of member, type and description of  volunteer, dateJoin, dateDisjoin, and allowance of the volunteer.   SELECT m.name, m.address, m.telNo, v.typeVolunteer, v.description, mv.dateJoin, mv.dateDisjoin, mv, allowance FROM MEMBER m, MEMBER_VOLUNTEER mv, VOLUNTEER v WHERE m.memberID=mv.memberID AND v.volunteerID=mv.volunteerID AND mv.dateJoin > “1/1/2010” AND mv.dateDisjoin <

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter11: Group Functions
Section: Chapter Questions
Problem 18MC
icon
Related questions
icon
Concept explainers
Question

The following tables are used to answer the question


MEMBER (memberID (PK), profession, name, address, telNo, areaCode (FK)
VOLUNTEER (volunteerID (PK), typeVolunteer, description)
MEMBER_VOLUNTEER  (memberID  (PK),  volunteerID  (PK),  dateJoin,  dateDisjoin, allowance)

 

This query is to select the names, address, and telephone number of member, type and description of  volunteer, dateJoin, dateDisjoin, and allowance of the volunteer.

 

SELECT m.name, m.address, m.telNo, v.typeVolunteer, v.description, mv.dateJoin, mv.dateDisjoin, mv, allowance
FROM MEMBER m, MEMBER_VOLUNTEER mv, VOLUNTEER v
WHERE m.memberID=mv.memberID AND v.volunteerID=mv.volunteerID AND mv.dateJoin > “1/1/2010” AND mv.dateDisjoin < “31/12/2020” AND mv.allowance = NULL AND m.profession = “Teacher”


The Question


Draw a relational algebra tree (RAT) for the queries and use the heuristic rules to
transform the queries into a more efficient form. State each step and any transformation rules used in the process. Assume the member was joined the volunteer more than one time, and different type of volunteer organization.

Expert Solution
steps

Step by step

Solved in 2 steps with 1 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
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
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
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning