-->
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: native sql query
PostPosted: Mon Sep 10, 2007 3:47 am 
Newbie

Joined: Thu Aug 09, 2007 9:37 pm
Posts: 5
plese reply with hql query for this


select avg(parm_value), site_id from mes_wat_mapraw where lot_id = 'MNA5076.00' and lot_type_flag='D01'
and test_type ='OQA'
and parm_name ='Isat_N4' group by site_id


thanx

_________________
sriram


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 10, 2007 5:37 am 
Newbie

Joined: Mon Sep 10, 2007 5:26 am
Posts: 2
Code:
select avg(mes.parm_value), mes.site_id
from MesWatMapraw as mes
where mes.lot_id = 'MNA5076.00'
and mes.lot_type_flag='D01'
and mes.test_type ='OQA'
and mes.parm_name ='Isat_N4'
group by mes.site_id


Replace
Code:
MesWatMapraw
with the actual name of your mapping class and check the properties as well - and you're done. If that's not the solution you probably should clarify your request and give some information on the table(s) and entities you use. (Posting the mapping file often helps.)


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.