Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparing
Message
 
À
26/06/2001 07:23:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00523261
Message ID:
00523758
Vues:
9
This message has been marked as a message which has helped to the initial question of the thread.
>hey john,
>
>i forgot to mention that there are certain fields that i want to exclude from the comparison.
>
LOCAL ARRAY laFields
LOCAL lcOn, lnI

lcOn = ""
SELECT 
FOR lnI = 1 TO AFIELDS(laFields)
  IF !INLIST(laFields[lnI,1], ...list of fields to exclude...)
    lcOn = lcOn + IIF(EMPTY(lcOn),"ON "," AND ")
    lcOn = lcOn + "FreeTable." + laFields[lnI,1] + " = DBCTable." + laFields[lnI,1]
  ENDIF
ENDFOR

SELECT FreeTable.* ;
  FROM FreeTable ;
  LEFT JOIN DBCTable &lcOn ;
  WHERE FreeTable.Field1 # DBCTable.Field1
Brien R. Givens

Brampwood Systems
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform