I want to select multiple column values based on multiple where clauses in SQL. I am not able to do it.
I am trying something like,
select c.fname,r.fname from customer as c LEFT JOIN retailer as r ON r.customer_id = c.id where c.id > 10 OR r.id < 50. Basically I want both my where clauses to get executed one by one and first output(when 'where c.id>10' is executed) should come as c.fname and second output (when 'where r.id<50') in one sql query.
Can it be done ? Please help.