Dear All This might be a silly question but I couldn't solve it by myself, I have got two table like schema below:
MEMBER(memberId, name, email) ADDRESS(adressId, memberId, countryCode)
Relation MEMBER(1)<---memberId--->(1)ADDRESS
I use subquery to get members who have countryCode like, 99, like this
SELECT member FROM MEMBER as member WHERE member.memberId IN( SELECT address.memberId FROM ADDRESS as address WHERE address.countryCode=99);
I really don't know how to map this to HQL query without using sub-query because MySQL 4.0 still doesnot support sub-query.
Thanks
_________________ <name>arin</name>
<at>netplus software</at>
|