P
Pjdelchi
Here is an easy one for you guys. How can I modify this query to return
zeros for any null field that may be returned in this query. I know that it
will probably be an Iff statement or Nz, but I cannot seem to find an example
of this type of right, left, union query, with replacing the resulting null
fields with zeros. I know that I could write another query, but I really
need it to be only one query. Any help would be greatly appreciated.
SELECT A.Category, A.Amount AS AmountA, B.Amount As AmountB
FROM Table1 AS A RIGHT JOIN Table2 AS B
ON A.Category = B.Category
UNION
B.Category, A.Amount AS AmountA, B.Amount As AmountB
FROM Table1 AS A LEFT JOIN Table2 AS B
ON A.Category = B.Category
zeros for any null field that may be returned in this query. I know that it
will probably be an Iff statement or Nz, but I cannot seem to find an example
of this type of right, left, union query, with replacing the resulting null
fields with zeros. I know that I could write another query, but I really
need it to be only one query. Any help would be greatly appreciated.
SELECT A.Category, A.Amount AS AmountA, B.Amount As AmountB
FROM Table1 AS A RIGHT JOIN Table2 AS B
ON A.Category = B.Category
UNION
B.Category, A.Amount AS AmountA, B.Amount As AmountB
FROM Table1 AS A LEFT JOIN Table2 AS B
ON A.Category = B.Category