-->
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: problem with subqueries
PostPosted: Mon Sep 28, 2009 10:30 am 
Newbie

Joined: Mon Sep 28, 2009 10:27 am
Posts: 1
I have a problem with a query which probably results from the subquery.
I'm open to suggestions:

select tmplt from Template tmplt, (select tmplt.name as n, tmplt.type as t, max(vrsn.version) as v from TemplateVersion vrsn inner join vrsn.template tmplt group by tmplt.name, tmplt.type) x where tmplt.name=x.n and tmplt.type=x.t


Top
 Profile  
 
 Post subject: Re: problem with subqueries
PostPosted: Tue Sep 29, 2009 5:26 am 
Beginner
Beginner

Joined: Wed Nov 19, 2008 6:39 am
Posts: 44
Location: Mumbai, India
Please post your exception and code.

_________________
Thx,
Murugesan.
Web: http://www.murugesanpitchandi.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.