wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following relations where keys are underlined:
P(X, Y, Z) and Q (A, X)
P contain 500 records and Q contain 1500 records. X in Q is a NON-NULL attribute and a foreign key referencing to P. If a is the maximum number of records in
PQ and b is the minimum number of records in
PQ.
What is the value of 2a-b________
(Where is a natural join)
  1. 1500

Open in App
Solution

The correct option is A 1500
'X' in P is a key so it contain all different value and 'X' in Q is not key and referencing to P so allits record will match to 'X' in P.So there is total 1500 minimum record and also 1500 maximum records.a=1500,b=15002ab=2×15001500=1500

flag
Suggest Corrections
thumbs-up
0
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Puzzles with Digits
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon