-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: help regarding outer join
PostPosted: Fri Jan 06, 2006 8:07 am 
Newbie

Joined: Mon Jan 02, 2006 8:15 am
Posts: 5
hi,

Below is the SQL Query that I was facing difficulty in converting to HQL.

SELECT EMP.EMP_CODE,EMP.EMP_STATUS_ID,EMP.FILE_CODE,EMP.SSN,EMP.DATE_CREATED,EMP.FLAG_DW,SU.USER_ID,SU.PASSWORD,,SGM.ROLE_ID FROM CA_EMP_MASTER EMP,CA_EMP_LOGIN SU, CA_EMP_ROLE SGM, CA_EMP_DAY_IN CLK WHERE SU.EMP_CODE=EMP.EMP_CODE AND CLK.EMP_CODE (+) = EMP.EMP_CODE AND SGM.EMP_CODE=SU.EMP_CODE AND EMP.EMP_CODE=?";


Problem is with the " CLK.EMP_CODE (+) = EMP.EMP_CODE ". Help me out of the situation.

thanks in advance,

pravi


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 06, 2006 12:00 pm 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
http://www.hibernate.org/hib_docs/v3/re ... ryhql.html

I think you can just type left outer join or right outer join.

somethin like
Code:
... outer join clk.emp_code and ...

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.