S
sallen
I want to add the code below to a query so that only accounts show up
on a report that have a balance greater than the sumprincpmts field.
This query will need to sum the Transactions before comparing to the
sumprincpmts field. Below is the code that I have come up with but I
am getting a syntax error. Please help...
SELECT a.accountnumber, p.sumprincpmt, SUM(t.accountnumber) AS Total
FROM account a, principalpayments p, transactions t WHERE t.total >
p.sumprincpmt GROUP BY t.accountnumber, p.sumprincpmt;
Thank you in advance for any help or guidance.
on a report that have a balance greater than the sumprincpmts field.
This query will need to sum the Transactions before comparing to the
sumprincpmts field. Below is the code that I have come up with but I
am getting a syntax error. Please help...
SELECT a.accountnumber, p.sumprincpmt, SUM(t.accountnumber) AS Total
FROM account a, principalpayments p, transactions t WHERE t.total >
p.sumprincpmt GROUP BY t.accountnumber, p.sumprincpmt;
Thank you in advance for any help or guidance.