Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Concatenating during a SELECT
Message
From
14/11/2000 14:22:42
 
 
To
14/11/2000 14:17:44
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00441758
Message ID:
00441762
Views:
14
>I'm doing a SELECT on a file and for one of the columns I want a list of the distinct (character) values for that field. Is there any nice way of doing this?
>


How about:

SELECT Distinct MyField FROM MyTable INTO CURSOR MyCursor

You can also use the GROUP BY clause to limit the occurance of a particular keying sequence:


SELECT MyKey1, MySubKey1,SomeRandomField FROM MyTable GROUP BY MyKey1,MySubKey1 INTO CURSOR MyCursor

>Thanks,
>Elyse
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform