Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL to check for dupes
Message
From
22/06/2014 14:03:40
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SQL to check for dupes
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01602195
Message ID:
01602195
Views:
57
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
Next
Reply
Map
View

Click here to load this message in the networking platform