Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to extract matching records
Message
From
01/08/2006 22:04:35
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
01/08/2006 21:15:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01142272
Message ID:
01142286
Views:
11
>>Dear Experts
>>
>>Field1 of Table1 has following data
>>
>>Boris
>>Cetin
>>Jeferson
>>Cetin
>>Tony
>>Boris
>>Validimir
>>Boris
>>
>>Questin # 1
>>I want to extract all unique matching records as
>>Boris
>>Cetin
>
>
>select distinct FirstName from Table1
>
>* or:
>
>select FirstName from Table1;
>  group by FirstName
>
>
>>Questin # 2
>>I want to extract not unique but all matching records as
>>Boris
>>Boris
>>Boris
>>Cetin
>>Cetin
>
>
>select FirstName from Table1;
>  order by FirstName
>
>
>Is this what you need? I hope I understood your question correctly.

Second one looks like

select * from table1 where Firstname inlist("Boris","Cetin","Hilmar")
Previous
Reply
Map
View

Click here to load this message in the networking platform