Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL to check for dupes
Message
De
22/06/2014 14:03:40
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SQL to check for dupes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01602195
Message ID:
01602195
Vues:
58
Hi All:

I can't figure out the SQL needed for this problem. There cannot be 2 records with the same location. Therefore Item# 6677 is invalid:
Item#      Location
1234       LOC1
2345       LOC1
2345       LOC2
6677       LOC1
6677       LOC1
I need the SQL to generate the following cursor, containing all the invalid records, appending the recno():
Item#   Location   Recno
6677    LOC1       43
6677    LOC1       78
Thanks,

Yossi
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform