Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A question on how to link to another table using SELECT?
Message
De
19/10/2000 10:34:09
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
19/10/2000 10:27:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00430870
Message ID:
00431458
Vues:
14
>Good Morning Cindy...
>Group by works…....thanks....
>The problem was that the part_numbes were not DISTNCT,
>and there were needed values in the same part_number record.
>Example….
>Table1 Value Value
>Part_number 123 25 – (needed value)
>Part_number 123 50 – (needed value)
>
>The problem could be fixed in two ways…
>Way 1….coded extra step and use GROUP BY before running the result query.
>Way 2… in query statement, call a function that gets the DESCRIPTION…example
> SELECT ………….get_desc(arg) AS fld_description…..


Robert - read about LOOKUP() in the Help for getting the description.


>
>Function get_desc
>Parm part_no
>find by part no
>Return fld_description
>
>Thanks all for your help…..
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform