B
BL
Dear all,
I have a invoice table (Table 1) which keeps the invoice master and the
amount of sales. We then have a tax table (Table 2) to calculate the
applicable tax for each line item, as a result
Table 1 Table 2
Record1 :$1000 Tax1 $5
Tax2 $6
Tax5 $2
Tax9 $3
Record2 :$2000 Tax1 $10
Tax2 $12
Record3 :$3000 Tax1 $15
Tax5 $10
Tax7 $25
I am wondering how to write a query that give me each sale and the related
tax as one record and I am interest to know Tax1 and Tax2 of each sales while
the rest of them can be combined as “other†tax.
I am thinking to use the CrossTab query but the Column Header is dynamic.
Thank you in advance for all your advise.
BL
I have a invoice table (Table 1) which keeps the invoice master and the
amount of sales. We then have a tax table (Table 2) to calculate the
applicable tax for each line item, as a result
Table 1 Table 2
Record1 :$1000 Tax1 $5
Tax2 $6
Tax5 $2
Tax9 $3
Record2 :$2000 Tax1 $10
Tax2 $12
Record3 :$3000 Tax1 $15
Tax5 $10
Tax7 $25
I am wondering how to write a query that give me each sale and the related
tax as one record and I am interest to know Tax1 and Tax2 of each sales while
the rest of them can be combined as “other†tax.
I am thinking to use the CrossTab query but the Column Header is dynamic.
Thank you in advance for all your advise.
BL