I have a very simple SQL statement but Access cannot process it. Any ideas on how I can do it differently?
This is the SQL (manually typed since copy and paste doesn't work in this forum):
SELECT left_value,count(right_value) FROM
LeftTable LEFT JOIN RightTable
on left_value = right_value
GROUP BY left_value
Database definition:
LeftTable contains 1 column called left_value
RightTable contains 1 column called right_value
Data in LeftTable:
0
1
-1
.6667
Data in RightTable:
0
1
Desired Result (it won't display here quite right, but you get the idea)
Code:
left_value count
======= =====
0 1
1 1
-1 0
.6667 0