Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange calculation
Message
 
To
05/11/2008 10:44:47
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01359766
Message ID:
01359890
Views:
33
>Dear Sir,
>
>Actually there are two tables, table1 and table2
>table1 has actual values
>table2 has supposed sumed values
>
>table1 has following data
>
>code--dr_amount
>--1-----24900
>--1-----70200
>--1-----71500
>--2-----14900
>--2-----10200
>--2-----11500
>
>Table2 has following data
>
>code--dr_amount
>--1-----157360
>--2-----35000
>
>I want to display table1 as following to equilize dr_amount in table2
>
>code--dr_amount
>--1-----15660
>--1-----70200
>--1-----71500
>--2-----13300
>--2-----10200
>--2-----11500
>
>there is change in only first record to adjust data according to table2
>
>Please help

And what if the difference is bigger than value of the first record?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform