Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Returning Zero if no data in second record set

$
0
0
Hello,

I am looking to design a report which compares the current year's records with records from the prior year. Is there a way to return a zero for the quantity if say my table data looks like below:

Table A 2013 Table B 2012

Variable QTY Variable QTY
Y 2 Y 6
x 3


Id like the query to return:

2012 y 6 2013 y 2
2012 x 0 2013 x 3

Right now when i compare data, I only see records that have value or zero keyed in. Is there anyway for access to enter zero if the record does not exist in a prior year?

Viewing all articles
Browse latest Browse all 13329

Trending Articles