Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating
Message
From
08/06/2006 18:15:36
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
08/06/2006 11:22:10
Kay Alexander
Pennsylvania Farm Bureau
Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01127861
Message ID:
01127967
Views:
13
>I am creating a cursor with keyID = 'key_value' from joining several SQL tables and each SQL table has keyID and keyIncrement as fields. When the cursor is created, it has several duplicated keyIncrement records for the given key_value. Then, I create an index as "INDEX ON STR(keyID)+STR(keyIncrement) TAG idx_MAD OF cdxMembers UNIQUE" to eliminate the duplicate increment numbers. ....

Hi Kay,

Exactly what SQL are you using? How are the keys being duplicated? Does some table have several matching rows that causes the duplicates in the result set? If there are several matchine key combinations, what about the rest of the fields? If they differ, how do you know which values you want to use/

Using a Fox UNIQUE index has always been a bad idea.
Previous
Reply
Map
View

Click here to load this message in the networking platform