K
karmela
Hi,
I'm trying to do my first database and I want to compare 2 tables.
Tbl 1:
Invoice nmr Part nmr Value Price
1001 A 601 100
1001 B 601 500
1001 C 602 200
1002 A 601 100
1003 D 602 550
Tbl2:
Invoice nmr Value SumPrice
1001 601 600 .... (part A+B)
1001 602 200 ..... (part C)
1002 602 100 ..... (part A)
1003 602 550 ...... (part D)
Relations data are invoice nmr, sources of both tables are different, so I
need to compare it.
But I get this query with duplicated values.
Invoice nmr Value Tbl2 Value Tbl1 SumPrice
1001 601 601 600 .... (part
A+B)
1001 602 601 200 ..... (part
C)
1001 601 602 600 .... (part
A+B)
1001 602 602 200 ..... (part
C)
1002 602 601 100 .....
(part A)
1003 602 602 550 ......
(part D)
I think the solution is not so complicated, but I can't get it.
Thanks for any help.
karmela
I'm trying to do my first database and I want to compare 2 tables.
Tbl 1:
Invoice nmr Part nmr Value Price
1001 A 601 100
1001 B 601 500
1001 C 602 200
1002 A 601 100
1003 D 602 550
Tbl2:
Invoice nmr Value SumPrice
1001 601 600 .... (part A+B)
1001 602 200 ..... (part C)
1002 602 100 ..... (part A)
1003 602 550 ...... (part D)
Relations data are invoice nmr, sources of both tables are different, so I
need to compare it.
But I get this query with duplicated values.
Invoice nmr Value Tbl2 Value Tbl1 SumPrice
1001 601 601 600 .... (part
A+B)
1001 602 601 200 ..... (part
C)
1001 601 602 600 .... (part
A+B)
1001 602 602 200 ..... (part
C)
1002 602 601 100 .....
(part A)
1003 602 602 550 ......
(part D)
I think the solution is not so complicated, but I can't get it.
Thanks for any help.
karmela