Deprecated: Implicit conversion from float-string "1530934019.196" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1530934019.196" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1530934019.196" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1530934019.196" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1530934019.196" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1530937417.008" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1530937417.008" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1530937417.008" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1530937417.008" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1530937417.008" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
Databases: #DBMS #SQL
217 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)

Please log in or register to answer this question.

Related questions

197
views
0 answers
0 votes
iarnav asked Dec 5, 2017
197 views
Kindly explain Check Constraint in SQL with a small example!
1.2k
views
2 answers
0 votes
Mubashirulislam asked May 5, 2017
1,184 views
Suppose relations R(A,B) and S(B,C,D) have the tuples shown below:R =AB123456S =BCD246468479Compute the result of the join query:SELECT A, R.B, C, D FROM R, S WHERE R.B =...
451
views
1 answers
0 votes
Mubashirulislam asked May 5, 2017
451 views
Suppose relations R(A,B) and S(B,C,D) have the tuples shown below:R =AB123456S =BCD246468479Compute the result of the join query:SELECT A, R.B, S.B, C, D FROM R, S WHERE ...
409
views
2 answers
0 votes
Mubashirulislam asked May 5, 2017
409 views
Here are two relations, R(A,B) and S(C,D). Their current values are:R =AB12345678S =CD210412614816Compute the result of the query:SELECT A, D FROM R, S WHERE B+C = 10Iden...