T
tomer
Hi
I have 4 tables
Customers,a,b,c.
and i am tring to get sum of the amount column for all table in a single
query
SELECT customers.code, customers.name, SUM(tablea.amount) AS tablea,
SUM(tableb.amount) AS tableb, SUM(tablec.amount) AS tablec
FROM customers LEFT OUTER JOIN
tablec ON customers.code = tablec.code LEFT OUTER JOIN
tableb ON customers.code = tableb.code LEFT OUTER JOIN
tablea ON customers.code = tablea.code
GROUP BY customers.code, customers.name
I get 'Syntax error (mising operator) in query expression 'customers.code =
tablec.code LEFT OUTER JOIN
tableb ON customers.code = tableb.code LEFT OUTER JOIN
tablea ON customers.code = tablea.code '
and the following is hilighted(between the [])
custom[ers].name
thanks in advance.
I have 4 tables
Customers,a,b,c.
and i am tring to get sum of the amount column for all table in a single
query
SELECT customers.code, customers.name, SUM(tablea.amount) AS tablea,
SUM(tableb.amount) AS tableb, SUM(tablec.amount) AS tablec
FROM customers LEFT OUTER JOIN
tablec ON customers.code = tablec.code LEFT OUTER JOIN
tableb ON customers.code = tableb.code LEFT OUTER JOIN
tablea ON customers.code = tablea.code
GROUP BY customers.code, customers.name
I get 'Syntax error (mising operator) in query expression 'customers.code =
tablec.code LEFT OUTER JOIN
tableb ON customers.code = tableb.code LEFT OUTER JOIN
tablea ON customers.code = tablea.code '
and the following is hilighted(between the [])
custom[ers].name
thanks in advance.