Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to extract matching records
Message
De
01/08/2006 21:15:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
01/08/2006 20:57:06
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:
01142280
Vues:
8
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform