Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to extract matching records
Message
From
01/08/2006 21:15:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
01/08/2006 20:57:06
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:
01142280
Views:
10
>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.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform