• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

left outer join

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ;) ?
 
We find this kind of rampant individuality very disturbing. But not this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic