Hi Everyone,
I have this sales tracking dB where i track sales and return for the ee's , I am trying to write a query where i would take the total sales for the month and the total returns(returns categorized by electronics and non electronics) and work out a %(i.e. in the dB employee DBOS has 400 sales and 3 returns all 3 returns are nonelectronics, anything other than "Remote Starter", "Car Alarm","Stereo" is non electronics so his nonelectronics sales Performance would be (400-3)/400 = 99.25%, and he does not have electronics return so that should be 100% but as those record don't show up in the qry_electronics_Returns as he does not have any electronics return i do not have any records for him for electronics sales performance which would actually be 100% as he had no electronics returned, the final result i get is by averaging the two % but because the employee does not have any electronic items returned i am not getting his final result as there are no records for this ee in the qry_electronics_return, so my question is, is there anyway that i could show his result as 100% for electronics sales performance so that i would get the correct final result for this ee which is (99.25%+100%)/2= 99.63% rather than not getting any result for this ee or any other ee's who do not have a return in one of the two categories
Regards
I have this sales tracking dB where i track sales and return for the ee's , I am trying to write a query where i would take the total sales for the month and the total returns(returns categorized by electronics and non electronics) and work out a %(i.e. in the dB employee DBOS has 400 sales and 3 returns all 3 returns are nonelectronics, anything other than "Remote Starter", "Car Alarm","Stereo" is non electronics so his nonelectronics sales Performance would be (400-3)/400 = 99.25%, and he does not have electronics return so that should be 100% but as those record don't show up in the qry_electronics_Returns as he does not have any electronics return i do not have any records for him for electronics sales performance which would actually be 100% as he had no electronics returned, the final result i get is by averaging the two % but because the employee does not have any electronic items returned i am not getting his final result as there are no records for this ee in the qry_electronics_return, so my question is, is there anyway that i could show his result as 100% for electronics sales performance so that i would get the correct final result for this ee which is (99.25%+100%)/2= 99.63% rather than not getting any result for this ee or any other ee's who do not have a return in one of the two categories
Regards