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
Win a copy of
Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams
this week in the
Agile and Other Processes
forum!
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
Devaka Cooray
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Jeanne Boyarsky
Tim Cooke
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Mikalai Zaikin
Carey Brown
Bartenders:
Forum:
Object Relational Mapping
Problem in Constructor Expressions
Gowher Naik
Ranch Hand
Posts: 643
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
select NEW org.UserDto(distinct(orgreg.contactNumber)) from OrganisationRegistration orgreg
Hi
The above query throws runtime exception due to
distinct
keyword.
Is there any solution available.
Thanks
James Sutherland
Ranch Hand
Posts: 553
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
DISTINCT only applies to the entire query (the only exception is its usage with an aggregate function).
Select distinct NEW org.UserDto(orgreg.contactNumber) from OrganisationRegistration orgreg
TopLink
:
EclipseLink
:
Book:Java Persistence
:
Blog:Java Persistence Performance
What a show! What atmosphere! What fun! What a tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Game on SQL
Query Question
need 2 rows rather than 5 from this query
Complicated SQL query help
Tell me this Logic
More...