Basic SQL Query Quesion
Posted by:
Jim Sogla
Date: March 29, 2024 11:48PM
Hello all I was give this query and needed to understand the output.
Please write the result for the following query Table1 name 1.
A 2. B 3. C Table2 name 1. B 2. C 3. D Select t1.name, t2.name FROM Table1 t1 INNER JOIN Table2 t2 ON t1.name = t2.name
INNER JOIN removes records from the result set where no matching values exist on both sides of the join. So t1.Name and t2.Name will never have null values in your result, because that's what an INNER join does as opposed to an OUTER join.
Table 1 = ABC
Table 2 = BCD
I assume the results would be BC? Since the Inner Join removes the non-matching values.
Am I correct on this assumption?
Subject
Written By
Posted
Basic SQL Query Quesion
March 29, 2024 11:48PM
Sorry, only registered users may post in this forum.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.