Question: Consider the suppliers - parts database with tables S , P , SP . Recall SP [ sno ] is a FK to S [

Consider the suppliers-parts database with tables S,P,SP. Recall SP[sno] is a FK to S[sno] and SP[pno] is a FK to P[pno]. Suppose that all three tables are stored as unordered files, and we have no available indexes. Check below all the correct statements. Assume the cost estimates discussed in the lecture. Also, assume that there is nothing in main memory that would store information about the database before each query besides the T object discussed in the lecture. Question 1 options:
If S has 30 blocks then the cost of select * from S where city="Rome' is at most 30da
If S has 30 blocks then the cost of select * from S where city="Rome' is at most 2da
If SP has 100 blocks then the cost of delete from SP where pno=350 is at most 100da
If S has 30 blocks then the cost of select * from S where city="Rome' is at most 15da
If SP has 100 blocks then the cost of delete from SP where pno=350 is at least 100da
If S has 100 blocks then the cost of delete from S where sno=150 is at most 100da

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!