Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace sno conditionaly
Message
De
05/12/2005 00:01:46
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Replace sno conditionaly
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01074825
Message ID:
01074825
Vues:
52
Dear Experts

Table1 has following three fields

grp c(1)
sno n(3)
date d()

Data in table1 is as

A, 5, 01-12-2005
A, 1, 01-12-2005
A, 3, 01-12-2005
B, 2 01-12-2005
B, 4, 01-12-2005

I want to replace sno according to unique grp, in same date, as follows

A, 1, 01-12-2005 && here sno will replace by 1
A, 2, 01-12-2005
A, 3, 01-12-2005
B, 1, 01-12-2005 && here sno will replace by 1 again
B, 2, 01-12-2005

Grp,A,B, means group.
Every new group must start with 1 and should continue increasing by 1 till
end of same date.

There are diffrent dates in table1.

Please help
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform