A
Aivars
Hello, group
I need to extract all the records in first table (its chart of accounts table (476 records) and from a.table (main ledger) where all booking entries are stored. The SQL statement below works by extracting only 370 entries which means those accountnos from first table which are not in the second table are not shown. But i need to show all records from chart_acc (b.table) and if there is no entry in a. table show nothing or 0.
SQL:
select b.accountno, b.account_name ,sum(a.amount) from sysadm_chartacc as b left join sysadm_accountdetails as a on a.accountno=b.accountno where a.financial_year=2004
group by b.accountno, b.account_name
Level: beginner
Access 2003
Thanks
Aivars
I need to extract all the records in first table (its chart of accounts table (476 records) and from a.table (main ledger) where all booking entries are stored. The SQL statement below works by extracting only 370 entries which means those accountnos from first table which are not in the second table are not shown. But i need to show all records from chart_acc (b.table) and if there is no entry in a. table show nothing or 0.
SQL:
select b.accountno, b.account_name ,sum(a.amount) from sysadm_chartacc as b left join sysadm_accountdetails as a on a.accountno=b.accountno where a.financial_year=2004
group by b.accountno, b.account_name
Level: beginner
Access 2003
Thanks
Aivars