Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to extract matching records
Message
De
01/08/2006 22:04:35
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
01/08/2006 21:15:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01142272
Message ID:
01142286
Vues:
9
>>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")
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform