select firstname,lastname
from table1 (nolock)
left outer join table2
on table1.ID=table2.ID
where table1.billingaddress like 'Lake street''
Am trying to use like when table1.billingaddress isnull i need to replace that with
table2.shippingaddress
select firstname,lastname
from table1 (nolock)
left outer join table2
on table1.ID=table2.ID
where case billingaddress isnull then shippingaddress like 'Lake street'
I am not getting desired result and please share your thoughts how to implement this using sql query.
1 Answer