• edited by
1,824 views
1 1 vote

Consider the following instance R.

A 1 2 3 4
B Null 1 2 2

The number of tuples returned by the following SQL query is _____________.
> select * from R as R1
   where not exists (select * from R)  where B = R1.A                          

1 Answer

Position:
Show:

Related questions

1 1 vote
2 2 answers
1.0k
1.0k views
Purple asked Jan 9, 2017
1,029 views
Consider the following instances $R.$A1234BNull122The number of tuples returned by the following $\text{SQL query}$ is$?$$>$select $*$ from $R$ as $R_{1}$ where not exist...
0 0 votes
1 answers 1 answer
891
891 views
0 0 votes
1 1 answer
643
643 views
Purple asked Jan 30, 2016
643 views
The inner query in Q1 will select the employee having max salary from all other employees in all departments(this will return the max salaried employee in the entire comp...
1 1 vote
1 1 answer
1.2k
1.2k views
Priyansh Singh asked Mar 29, 2019
1,203 views
Given the following schema:employees(emp-id, first-name, last-name, hire-date, dept-id, salary)departments(dept-id, dept-name, manager-id, location-id)You want to display...