J
JSB
Hi,
I am working on a database with 2 tables.
First table has 3 fields: BACODE, CODE1 and CODE2.
Second table has 3 fields: DESCRIPTION, CODE and PRICE.
Now I need to do a query where if I give the 'BACode' it
should add 'code1 + code2' and give the description and
the total 'price' for that code.
Example:
Table1:
BACode Code1 Code2
BA01 0852 0882
BA02 0852 0900
BA03 0852
Table2:
Desc Code Price
Local 0852 $0.12
LocalExt 0882 $0.23
If I give 'BA01'in the query,
I should get
Description :'Local+LocalExt'
and PRICE :'$0.35'.
Thanks.
I am working on a database with 2 tables.
First table has 3 fields: BACODE, CODE1 and CODE2.
Second table has 3 fields: DESCRIPTION, CODE and PRICE.
Now I need to do a query where if I give the 'BACode' it
should add 'code1 + code2' and give the description and
the total 'price' for that code.
Example:
Table1:
BACode Code1 Code2
BA01 0852 0882
BA02 0852 0900
BA03 0852
Table2:
Desc Code Price
Local 0852 $0.12
LocalExt 0882 $0.23
If I give 'BA01'in the query,
I should get
Description :'Local+LocalExt'
and PRICE :'$0.35'.
Thanks.