I am working on "searching" in my project.I am using left join.At one situation i am getting infinite results becoz ,ex: if a user has 10 education details then i will get 10 times that same userid and when i add another employ ment details table and he has 10 employe ment details then my sql will show 100(10*10 =) same user id's when i join other tables it will increasing exponentially so I want one user id if he has 10 education details .for that i want to match set of array with array .OR let me no is there any alternative way to write that search query.Pls tell me........