I have a database with two tables. One for rental car bookings, and one for rental car returns.
Tables are structured as below:
Bookings Table:
ID
Location
Booking Date
Quantity
Returns Table:
ID
Location
Return Date
Quantity
I am basically trying to make an inventory calculation. I have made two queries, one for each table. The both do a calculation to work out the sum. Either cars in or out.
I have then created a query which does a SumofReturns-SumofBookings calculation based on the two queries explained above. However, it is giving me multiple rows for each location.
Location1 24
Location1 25
Location2 11
Location2 12
Location3 19
Location3 20
Any ideas why?
Tables are structured as below:
Bookings Table:
ID
Location
Booking Date
Quantity
Returns Table:
ID
Location
Return Date
Quantity
I am basically trying to make an inventory calculation. I have made two queries, one for each table. The both do a calculation to work out the sum. Either cars in or out.
I have then created a query which does a SumofReturns-SumofBookings calculation based on the two queries explained above. However, it is giving me multiple rows for each location.
Location1 24
Location1 25
Location2 11
Location2 12
Location3 19
Location3 20
Any ideas why?