Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A question on how to link to another table using SELECT?
Message
From
19/10/2000 10:34:09
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
19/10/2000 10:27:05
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00430870
Message ID:
00431458
Views:
12
>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…..
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform