-->
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: how to execute this query in hibernate
PostPosted: Mon Aug 09, 2010 5:24 am 
Newbie

Joined: Tue Aug 03, 2010 2:21 am
Posts: 3
select w.campaignId from Sintwlm w,Clipbooklog c where w.consumerId=c.consumerid;

while executing this query multiple duplicate values are displayed,
but iwant to display uniq.
table1:Sintwlm
table 2:Clipbooklog

wen in both tables of consumerid wil match display the campaignid column of sintwlm table.
plz reply to this problem how to solve.


Top
 Profile  
 
 Post subject: Re: how to execute this query in hibernate
PostPosted: Mon Aug 09, 2010 5:38 am 
Regular
Regular

Joined: Fri Aug 06, 2010 1:49 am
Posts: 102
Location: shynate26@gmail.com
Could you give me the snapshot of the columns and their constraints among these two tables.

Code:
select w.campaignId,
[b]c.primarykey[/b]
from Sintwlm w,Clipbooklog c
where w.consumerId=c.consumerid;



Try executing this in native sql - oracle or msql. so that you can know where it is going wrong.

_________________

Cheers!
Shynate
mailto:shynate26@gmail.com
www.CSSCORP.com


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.