I have 2 files that are the result of a cursor from a select cnt of a state field. One is ran the 1st of the month, and the second is ran the 30th of the month. I want to generate a file from the 2 files and add 2 fields Difference, and Percent.
FileA.dbf (1st of the month)
State Qty
AZ 250
AK 190
CA 5,050
CO 1,200
FileB.dbf (30th of the month)
State Qty
AZ 275
AK 268
CA 6,285
CO 1,182
This is the result of a SQL select I am trying to create:
State Qty StateB QtyB Diff Percent
AZ 250 AZ 275 25 9.09%
AK 190 AK 268 78 29.10%
CA 5,050 CA 6,285 1,235 19.65%
CO 1,200 CO 1,182 -18 -1.52%
I welcome any and all tips, and thank you in advance,
Mike
FileA.dbf (1st of the month)
State Qty
AZ 250
AK 190
CA 5,050
CO 1,200
FileB.dbf (30th of the month)
State Qty
AZ 275
AK 268
CA 6,285
CO 1,182
This is the result of a SQL select I am trying to create:
State Qty StateB QtyB Diff Percent
AZ 250 AZ 275 25 9.09%
AK 190 AK 268 78 29.10%
CA 5,050 CA 6,285 1,235 19.65%
CO 1,200 CO 1,182 -18 -1.52%
I welcome any and all tips, and thank you in advance,
Mike