aspose file tools*
The moose likes JDBC and the fly likes left outer join Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "left outer join" Watch "left outer join" New topic
Author

left outer join

changhyun moon
Greenhorn

Joined: Oct 19, 2008
Posts: 7
Dear dude,
I have used (+) symbol for outer join,
but in this project HiRDB doesn't work with (+).
So I have to use 'left outer join' terms, I am however not used to it.

Here is my question:
Can I use the table which is the object of 'left outer join' with another join?
for example, it is cTable.

select aTable.name, bTable.address, cTable.yearlyPay
from aTable left outer join cTable
on aTable.company = cTable.company,
bTable
where bTable.position = cTable.position
and aTable.workyear = bTable.workyear;

in this example above, cTable is left outer joined with aTable
and used to join with bTable in where phrase.
I am afraid if we can't join cTable with another table(bTable) once cTable is used to left outer join with aTable.
Dragan Jovanovic
Greenhorn

Joined: Feb 07, 2008
Posts: 15
If you are using pure SQL, this syntax is definitely ok.
If you are using HQL or something similar, it should also be ok. Why don't you just try it ;) ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: left outer join
 
Similar Threads
A query in naming conventions of Oracle Joins
join problem in hibernate 3.x
Old style SQL vs new style SQL
SQL for monthly report with each month must be selected even if there is no data
multiple tables using left outer join?