Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Object Relational Mapping
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Object Relational Mapping
Avg(...) aggregate function
subhashchandra medhiassam
Ranch Hand
Posts: 72
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Dear friends,
I would like to know how to use the avg(...) aggregate function available in hibernate. Kindly help me with some simple example.
Thanks in advance,
Subhash
Sridhar Santhanakrishnan
Ranch Hand
Posts: 317
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
select avg(e.salary) from Employee e
subhashchandra medhiassam
Ranch Hand
Posts: 72
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks. But i would like to know how to execute the query and retrieve the result of the avg(...) function. Kindly help.
Subhash
Paul Sturrock
Bartender
Posts: 10336
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Here
is the best place to start. Have a read of the chapter on Querying.
JavaRanch FAQ
HowToAskQuestionsOnJavaRanch
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Difference Between count() and size
Answers of Sun's Free Proficiency Assessment
HQL: How to count green eye kittens?
question about aggregate function
SQL Having Clause
More...