Nhibernate HQL Subselect queries
Posted
by MegaByte
on Stack Overflow
See other posts from Stack Overflow
or by MegaByte
Published on 2010-04-26T11:35:51Z
Indexed on
2010/04/26
15:03 UTC
Read the original article
Hit count: 453
nhibernate
|hql
Hi
I have the following SQL query:
select c.id
from (select id from customers) c
This query has no practical value - I simplified it greatly for the purpose of this post.
My question: is it possible have a subquery in the from clause using HQL. If not, can I perhaps query the customers first, kinda like a temp table in sql, and then use the result as the source of the next query?
thanks
© Stack Overflow or respective owner