-->
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: LEFT JOIN HELP
PostPosted: Wed Nov 19, 2008 9:15 am 
Newbie

Joined: Wed Nov 19, 2008 8:20 am
Posts: 9
I have to rewrite this query using the Criteria.
Who can to help me?

A and B aren't related.

select * from A
left join B
on A.CODE = B.CODE
and A.START_DATE >= B.BEGIN_DATE
and A.START_DATE <= B.END_DATE


THANKS

_________________
-------------------------------------
La realizzazione di un sogno
aiuta l'animale uomo a vivere
con dignità
-------------------------------------


Last edited by beguine on Wed Nov 19, 2008 12:39 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 19, 2008 9:17 am 
Newbie

Joined: Wed Nov 19, 2008 8:20 am
Posts: 9
excuse me for two equal post!

_________________
-------------------------------------
La realizzazione di un sogno
aiuta l'animale uomo a vivere
con dignità
-------------------------------------


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.