in Databases edited by
3,525 views
5 votes
5 votes

The SQL query

SELECT columns
FROM TableA
RIGHT OUTER JOIN TableB
ON A.columnName = B.columnName
WHERE A.columnName IS NULL

returns the following:

  1. All rows in Table $\text{B}$, which meets equality condition above and, none from Table $\text{A}$ which meets the condition.
  2. All rows in Table $\text{A}$, which meets equality condition above and none from Table $\text{B}$, which meets the condition.
  3. All rows in Table $\text{B}$, which meets the equality condition
  4. All rows in Table $\text{A}$, which meets the equality condition
in Databases edited by
by
3.5k views

2 Comments

Not sure maybe option a).
1
1
None are correct.
2
2

5 Answers

0 votes
0 votes

 Table A

AB
1a
2c

Table B:

CD
1b
3d

Then, 

TableA RIGHT OUTER JOIN TableB ON A.columnName = B.columnName

ABCD
1a1b
NULLNULL3d

Where A.columnName is NULL ------>>>>> return The row from table B which meet the equal condition but not the row from the Table A which meet the equal condition..

Answer:

Related questions