two Inner join and leftjoin

P

pol

Please let me know the reason for invalid sql
for the folowing sql

SELECT
select (roq_salerep_target.* from
from (roq_salerep_target
Left join roq_salesrep_sales
ON roq_salerep_target.salerep_code = roq_salesrep_sales.salesrepcode
and roq_salerep_target.target_date = roq_salesrep_sales.invdate )
INNER JOIN roq_salesrep ON roq_salerep_target.salerep_code =
roq_salesrep.salerep_code
INNER JOIN roqcustomer ON roq_salerep_target.salerep_code = roqcustomer.rep

With thanks
pol
 
J

Join

Please let me know how to give two inner joins and left join in a query.
Please give an example
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top