Hi all,
I need assistance in putting 'UNION ALL' into the following SQL statement:
SELECT [zTBL_STATE_GROUP_TABLE 3].STATE, [zqry_nsw/act inconjunctiontable 3].[Total (in conjunction)], [zqry_inconjunction_QLD TABLE 3].[Total (in conjunction)], [zqry_inconjunction_SA/NT TABLE 3].[Total (in conjunction)]
FROM [zqry_nsw/act inconjunctiontable 3] RIGHT JOIN ([zqry_inconjunction_SA/NT TABLE 3] RIGHT JOIN ([zqry_inconjunction_QLD TABLE 3] RIGHT JOIN [zTBL_STATE_GROUP_TABLE 3] ON [zqry_inconjunction_QLD TABLE 3].STATE = [zTBL_STATE_GROUP_TABLE 3].STATE) ON [zqry_inconjunction_SA/NT TABLE 3].STATE = [zTBL_STATE_GROUP_TABLE 3].STATE) ON [zqry_nsw/act inconjunctiontable 3].STATE = [zTBL_STATE_GROUP_TABLE 3].STATE;
I know that the 'UNION ALL' should be placed after the 'FROM', but here it has 'RIGHT JOIN' and 'ON' which is confusing me.
I've attached two image files, one shows the result of the query above the other one shows the result I needed.
Please any help or directions would be appreciated.
Thank You,
Dave
I need assistance in putting 'UNION ALL' into the following SQL statement:
SELECT [zTBL_STATE_GROUP_TABLE 3].STATE, [zqry_nsw/act inconjunctiontable 3].[Total (in conjunction)], [zqry_inconjunction_QLD TABLE 3].[Total (in conjunction)], [zqry_inconjunction_SA/NT TABLE 3].[Total (in conjunction)]
FROM [zqry_nsw/act inconjunctiontable 3] RIGHT JOIN ([zqry_inconjunction_SA/NT TABLE 3] RIGHT JOIN ([zqry_inconjunction_QLD TABLE 3] RIGHT JOIN [zTBL_STATE_GROUP_TABLE 3] ON [zqry_inconjunction_QLD TABLE 3].STATE = [zTBL_STATE_GROUP_TABLE 3].STATE) ON [zqry_inconjunction_SA/NT TABLE 3].STATE = [zTBL_STATE_GROUP_TABLE 3].STATE) ON [zqry_nsw/act inconjunctiontable 3].STATE = [zTBL_STATE_GROUP_TABLE 3].STATE;
I know that the 'UNION ALL' should be placed after the 'FROM', but here it has 'RIGHT JOIN' and 'ON' which is confusing me.
I've attached two image files, one shows the result of the query above the other one shows the result I needed.
Please any help or directions would be appreciated.
Thank You,
Dave