Empid Name Company Companyid 11 Alberto Baker & Mec Ltd 25 11 Alberto Baker & rel LLP 26Whereas empid 12 will be returned because the first word differs between the two companies.
Empid Name Company Companyid 12 Ameez Baker & Mec Ltd 25 12 Ameez Wrong & Part LLP 27--- **Edit:** Pulled up from a clarifying answer below --- i will repeat my question clearly This is my table
EmpID EmpName CompanyName companyid 123 Josep Kramer Levin Naftalis & Frankel LLP 468 123 Josep Thompson Hine LLP 567 801 Simon Ogletree Deakins International LLP 222 801 Simon Ogletree, Deakins, Nash PC 916 602 alen Baker Co Ltd 732 602 alen Baker Mcken Ltd 242**Condition is** : Output will return, if the first word of the company name is not more than once, **Ex:Baker and Ogletree** these words are more then once so it is not include as Output My Output like this
EmpID EmpName Company Name companyid 123 Josep Kramer Levin Naftalis & Frankel LLP 123 123 Josep Thompson Hine LLP 123