-->
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 with Outer Join
PostPosted: Tue Dec 06, 2005 3:17 pm 
Newbie

Joined: Tue Dec 06, 2005 3:09 pm
Posts: 1
I have a messy database, not normalized, doesnt have
the right primary key and foreign key mappings.

My tables are linked by fields which are not specified
as foreign keys.

My two tables in question are

Table 1

id [Comp Key]
no [Comp Key]
desc

Table 2

name [pkey]
tb1id
value

I need to do an outer join to table1 from table2
and get the associated desc value for the tb1id mapped to the
id value of table 1 given a particular constant value for the no. field.

Basically I need all rows of table 2 with associated desc values of
table 1 if present for a particular string value of no. field of table 1.


These tables are not linked in the config files by mappings
so i am not able to do an outer join query through hibernate

any suggestions would be really helpful
thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 06, 2005 7:31 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Native SQL


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.