in Databases
213 views
0 votes
0 votes
For the relations:

A(pid, cid)

B(pid, pname, powner)

C(cid, cname, cdesciption)

How will the query be executed :

SELECT pname, cname FROM A, B, C
WHERE B.powner = $somevalue
AND EXISTS(SELECT * FROM A WHERE A.cid = C.cid AND A.pid = B.pid)
in Databases
by
213 views

1 comment

first take cartesian product of A, B, C...

for each row in the result... Calculate the sub query where A is different to CARTESIAN PRODUCT table A
0
0

Please log in or register to answer this question.

Related questions