Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Confuse with grouping
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00843323
Message ID:
00843340
Vues:
25
>One of the problems that may exist in my database is a person having their name spelled differently, but having same SSN. In that case how would I handle this situation? Or should it even matter? Thanks
>
>Nick Patel

If you don't care wich name or agency will be included, use MIN or MAX SQL function
SELECT MAX(Sarptp.name) AS name, Sarptp.ssn, ;
      SUM(Sarptp.amt), MAX(Sarptp.agency) AS agency ;
 FROM ti!sarptp;
 GROUP BY Sarptp.ssn ;
 ORDER BY Sarptp.name
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform