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
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