Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie View Designer Join Problem
Message
De
14/08/1998 08:11:09
 
 
À
14/08/1998 00:11:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00126790
Message ID:
00126842
Vues:
24
>I have two free tables that I want to join in a view. TABLE1 has a CATALOG field that is 6 characters long (eg AE001H). TABLE2 has a CATALOG field that is 5 characters long (eg AE001).

*snip*

>In otherwords, I want the relationship between TABLE1 and TABLE2 to be based on SUBSTR(TABLE1.CATALOG,1,5)
>
>How do I accomplish this in the View Designer?

Just the way you suspect:

Type Field Name Criteria Value
INNER TABLE2.Catalog = SUBSTR(TABLE1.Catalog, 1, 5)

You could also use:

INNER TABLE2.Catalog = LEFT(TABLE1.Catalog, 5)

HTH,
Paul M.
Paul M.
MCSE/MCSA/MCT/MCP+I, A+, Network+, I-Net+
Nil carborundum illegitimi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform