Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to DELETE next records
Message
From
02/04/2002 09:47:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
02/04/2002 09:45:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00639915
Message ID:
00639917
Views:
11
You can SELECT ... DISTINCT, or SELECT ... GROUP BY, and then copy back to the original table.

HTH, Hilmar.

>Hi all
>
>I have mytable.dbf with an index on empno.
>
>recn() empno
>1 10000
>2 10000
>3 10000
>4 10000
>5 20000
>6 20000
>7 30000
>8 30000
>9 30000
>10 30000
>
>to get mytable after deleting the records number 2,3,4,6,8,9,10
>
>and to keep only
>
>recn() empno
>1 10000
>5 20000
>7 30000
>
>Please help in coding
>Thanks
>PP
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform