Sweetworks
MIS
I'm trying to do this in Crystal 8.5 on an Oracle 8.1.7.4 database
I have a table (SALES_TAX_PCT) with the following 3 fields:
ID
Effective_Date
Percent
On one Sales Tax ID's there will be various percentages but the one with the most recent effective Date is the value I want
So for Sales Tax ID 1
ID Date Percent
1 1/1/2002 8
1 6/1/2003 8.25
So If I have a simple report just off this table with the 3 fileds as items on the Detail line, I want to make a selection criteria that will just give me the most recent info on that tax_id.
SO far I have
CurrentDate < {SALES_TAX_PCT.EFFECTIVE_DATE} but that will give me everyting as both dates are less then the current date.
Further more I want to take this and associate the percentage with a sales. If I can get this I can probably getting it workin in my other report.
I have a table (SALES_TAX_PCT) with the following 3 fields:
ID
Effective_Date
Percent
On one Sales Tax ID's there will be various percentages but the one with the most recent effective Date is the value I want
So for Sales Tax ID 1
ID Date Percent
1 1/1/2002 8
1 6/1/2003 8.25
So If I have a simple report just off this table with the 3 fileds as items on the Detail line, I want to make a selection criteria that will just give me the most recent info on that tax_id.
SO far I have
CurrentDate < {SALES_TAX_PCT.EFFECTIVE_DATE} but that will give me everyting as both dates are less then the current date.
Further more I want to take this and associate the percentage with a sales. If I can get this I can probably getting it workin in my other report.