View Single Post
  #5 (permalink)  
Old 07-23-09, 12:27
saasira saasira is offline
Registered User
 
Join Date: Jun 2009
Posts: 8
Hi Dave,
I meant that the first subset of data is returned in around 18 millisconds if I don't say distinct, which obviously leaves out some records which do not in the subset.

what I have:

User*----*Role
User-----*loginsession
User----*UserType
User-------*Profile
defaultProfile-----*Address
Address----phone

here userroleassign and userusertypeassign are the jooin tables for many to many associations between user==>role and user==>usertype respectively.

Now I want some fields from user,some fields from usertype,some fields from
loginSession,and phone number from his defaultprofile-->adresss where user has a certain role.

I could not come up with a query that gives me the above explained data set.

Can you help build a query that gets the above resultset?

Thanks and Regards,
Samba

Last edited by saasira; 07-24-09 at 13:10.
Reply With Quote