Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Divide 2 records to have percent in additional record
Message
From
13/06/2001 15:09:00
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
13/06/2001 14:33:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00519000
Message ID:
00519013
Views:
18
>Hi all,
>
>Two records in one table
>
>table1.dbf
>
>number :
>
>2 first record
>4 second record
>
>2/4 or 0.5 or 50% to newly 3rd record in the same table.
>
>Any source code that leads to the solution would be greatly appreciated ?
>
>Paul

use Table1
lnNumber = Number
skip
lnNumber = lnNumber/number
insert into Table1 values (lnNumber)

This is strict assuming number field is capable holding a float and only there are 2 recs.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform