Hello!

Is anybody know why this simple query doesn't run on SQL Server CE ?

SELECT     Namee
FROM         Obj AS p
WHERE     ((SELECT     COUNT(Parent) AS Expr1
                         FROM         Obj AS c
                         WHERE     (p.Id = Parent)) > 0)


As you can see I trying to get all nodes wich have at least one child.
Query is generated by NHibernate

session.CreateQuery("select p.Name from Obj as p where
size(p.Children)>0")
.List();


Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to