Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listing Duplicate's
Message
De
18/05/1998 04:24:03
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00100052
Message ID:
00100056
Vues:
62
>Hi All,
>
>I need to list (cursor/tmp file /whatever)
>of duplicates in a table.
>
>There are 2 fields when combined will form the duplicate key value.
>SALESDATE + TRIP_NO.
>
>I can do this with MS-SQL 6.0 but in FOXPRO the SYNTAX seems to
>have me stumped.
>
>Can anybody help?
>
>John King
>tola@dbn.lia.net
John,
select * from mytable ;
  where (SALESDATE + TRIP_NO) in ;
  (select SALESDATE + TRIP_NO ;
     from mytable ;
     having cnt(*) > 1 ;
     group by 1)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform