Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Record with Similar Name
Message
From
12/02/2018 05:54:40
 
 
To
09/02/2018 15:32:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01658055
Message ID:
01658060
Views:
70
If this table has a primary key, you could select the duplicate names and primary key then, using a UDF in the update where clause, increment the suffix.

>I have a Table in Which there is a column named Account.
>
>There are cases where there are some repeated Data in this column for example james in as given Below.
>
>
>James
>Charles
>Joseph
>James
>Sarfarz
>James
>
>
>I need to update the repeated value as
>
>
>James
>Charles
>Joseph
>James-2
>Sarfarz
>James-3
>
>
>or
>
>
>James-1
>Charles
>Joseph
>James-2
>Sarfarz
>James-3
>
>
>Is there any way to do so using SQL or some code. I could do using Scan Endscan Loop but will Take Lot of time where the table size is big and volume of Data is large
>
>Thanks
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Previous
Reply
Map
View

Click here to load this message in the networking platform