emmanuel wrote:
Code:
select distinct count(a) from A a join a.bs where a.att1= :x and b.att2 = :y
Not sure of the distinct count
I tried this against the users/roles stuff in Tomcat authentication :
Query query = (Query) session.createQuery("select distinct count(users) from users in class ee.LogonUser join users.roles where users.userName='john' and roles.roleName = 'member'");
and got :
General error message from server: "Uknown table 'roles' in where clause".
Anybody else have a suggestion
This is against Adaptive Server Anywhere 6.04