dotnet 3.5
llblgen 2.6
sqlserver 2005
I have 3 tables: client, employer, and person.
The tables have the following relationships: client.Id = employer.client_Id, client.Id = person.client_Id, employer.Id = person.employer_Id. Basically an employer belongs to a client and a person can belong to either a client or an employer. Thus person can belong to multiple employers due to client 1:n employer.
I want to do the following query in llblgen. It works in sqlserver. Can some one shows me how to?
select e.* from employer e join client c on c.id=e.client_id join person p on (e.id=p.employer_id or c.id=p.client_id) where p.id=12345
Thanks
BZ