Consider the following relational schemas: And the instances (snapshots) of…

Consider the following relational schemas:

And the instances (snapshots) of the above schemas: 

Consider the following relational algebra query is executed on the above instance: 

The number of rows return by above query is ________. 

This query finds the names of sailors who have reserved a red boat. 

Answer: 3projection on bid with selection criteria as red gives 2 output this 2 output is joind on table reserves projecting the sid from the above table and applying…

Attempted by 3 students.

Show answer & explanation

Correct answer: 3

projection on bid with selection criteria as red gives 2 output

image.png

this 2 output is joind on table reserves

image.png

projecting the sid from the above table and applying nautral join on sailors we get three names as

image.png

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…