Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compare fields between 2 records of a cursor
Message
De
12/03/2012 14:46:15
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01538081
Message ID:
01538101
Vues:
55
You could use a self join.
 select xxx from cursor a join cursor b where a.sss = b.sss and a.field1 != b.field1 
>I need to compare a subset of fields in two records of the same cursor to create output where record1.field not equal record2.field. The best way I can think of is to scatter fields from each rec to separate arrays then do a for ... next loop comparing the values and kicking out field names from a matching array of the ones that are different.
>
>I already know some will always be different so sys(2017) won't help here. I thought there was another function to compare fields but I can't remember or find it. (It's Monday.)
>
>Anyone got a better idea?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform