How can I create an sql statement based on a condition?
select Name, Address, Flag from Employees
If Flag = 'Y' then
join Customers
on id=id
else
join Clients
on id=id
For each record returned I want to either join to the Customers or the Clients table for additional information
RDBMSyou are using