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
paul wheaton
Liutauras Vilda
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Paul Clapham
Saloon Keepers:
Scott Selikoff
Tim Holloway
Piet Souris
Mikalai Zaikin
Frits Walraven
Bartenders:
Stephan van Hulst
Carey Brown
Forum:
Object Relational Mapping
Problem in Constructor Expressions
Gowher Naik
Ranch Hand
Posts: 643
posted 12 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 12 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
Consider Paul's
rocket mass heater
.
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...