Hello,
I'm searching for a query where I can get the sum out off 2 different tables with a join. It's about barcoding and keeping my stock. So you have barcodes in, and barcodes out.
barcodes_in:
barcodeinID
code
amount
barcodes_out:
barcodeoutID
barcodeinID
amount
barcodeinID code amount
1 1 5
2 1 5
3 2 10
4 2 15
barcodeoutID barcodeinID amount
1 1 3
2 1 2
3 2 2
4 4 10
I want per code the amount in, and out. So in my example this will give
code in out
1 10 7
2 25 10
is this possible?
The One And Only KryptoS
I'm searching for a query where I can get the sum out off 2 different tables with a join. It's about barcoding and keeping my stock. So you have barcodes in, and barcodes out.
barcodes_in:
barcodeinID
code
amount
barcodes_out:
barcodeoutID
barcodeinID
amount
barcodeinID code amount
1 1 5
2 1 5
3 2 10
4 2 15
barcodeoutID barcodeinID amount
1 1 3
2 1 2
3 2 2
4 4 10
I want per code the amount in, and out. So in my example this will give
code in out
1 10 7
2 25 10
is this possible?
The One And Only KryptoS