1,254 views
0 0 votes

I think it should be option a)

All query $1,3,4$ are equivalent but $2$ is not equivalent.

Query $2$ should be 

$\prod \text{Room no,hotel no,type,price}(\sigma \text{type='single' } \wedge \text{price=200 })$

1 Answer

1 1 vote

When you don't use project and do only select, by default all the columns are returned, thus making Query 2 same as Query 1. 

Eg:

Position:
Show:

Related questions

1 1 vote
2 2 answers
2.1k
2.1k views
aditi19 asked May 8, 2019
2,145 views
Suppliers(sid, sname, address)Parts(pid, pname, color)Catalog(sid, pid, cost)Find the pids of the most expensive parts supplied by suppliers named Yosemite Sham
5 5 votes
3 3 answers
12.2k
12.2k views
aditi19 asked Apr 11, 2019
12,191 views
Given two relations R1 and R2, where R1 contains N1 tuples, R2 contains N2 tuples, and N2>N1 0, give the minimum and maximum possible sizes (in tuples) for the result rel...
0 0 votes
1 1 answer
1.4k
1.4k views
Aman Janko asked Jan 27, 2019
1,384 views
SQL Aggregation is possible by extended relational algebra operators? SQL grouping is possible in relational algebra. Relational algebra is equivalent to safe relational ...
0 0 votes
0 0 answers
813
813 views
kumar.dilip asked Oct 27, 2018
813 views
Online Site For practicing Relational Algebrahttps://dbis-uibk.github.io/relax/calc.htm