CRXI
Help me with this. I’m stuck...
I made groups by location, conttype.
I have the location, sales for each job, in the table tsales. I make the link between tcont.jobno= tsales.jobno because I need to sum the teus of the same type (3X20ft=3 teus); each cont of 20ft has one teu, and the others have 2 teus. Everything is fine, but the sales, because the job appears twice, or more than once, the sales are added the same.
I don’t have the sales in other table.
I can’t add tables in the database.
Honolulu
JobNo ContName ContType Sales
20ft
15 S1 20ft 200
16 G1 20ft 400
64 E 20ft 300
3X20ft=3 teus
40ft
15 U16 40ft 200
83 G71 40ft 150
60 E3 40ft 500
73 T44 40ft 250
83 PG7 40ft 600
5X40ft=10 teus
40ftHQ
80 MS5 40ftHQ 100
1X40ftHQ=2 teus
45ft
80 AP6 45ft 100
80 AP30 45ft 100
2X45ft=4 teus
total 2900
total wanted 2900-200-100-100=2500
Help me with this. I’m stuck...
I made groups by location, conttype.
I have the location, sales for each job, in the table tsales. I make the link between tcont.jobno= tsales.jobno because I need to sum the teus of the same type (3X20ft=3 teus); each cont of 20ft has one teu, and the others have 2 teus. Everything is fine, but the sales, because the job appears twice, or more than once, the sales are added the same.
I don’t have the sales in other table.
I can’t add tables in the database.
Honolulu
JobNo ContName ContType Sales
20ft
15 S1 20ft 200
16 G1 20ft 400
64 E 20ft 300
3X20ft=3 teus
40ft
15 U16 40ft 200
83 G71 40ft 150
60 E3 40ft 500
73 T44 40ft 250
83 PG7 40ft 600
5X40ft=10 teus
40ftHQ
80 MS5 40ftHQ 100
1X40ftHQ=2 teus
45ft
80 AP6 45ft 100
80 AP30 45ft 100
2X45ft=4 teus
total 2900
total wanted 2900-200-100-100=2500