Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL duplicates Question
Message
From
22/09/2012 15:42:17
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SQL duplicates Question
Miscellaneous
Thread ID:
01553489
Message ID:
01553489
Views:
80
The SQL below crashes on the 'GROUP BY' line but still runs through to a BROWSE statement below the SQL.
Duplicates are not removed in the result. When I close the BROWSE window, the GROUP BY line is highlighted.

* Remove dupicates
USE (m.TableToSave)
SELECT * FROM (m.TableToSave)
GROUP BY hits
INTO TABLE sqltemp
SET SAFETY OFF
CLOSE TABLES ALL
COPY FILE sqltemp.DBF TO (m.TableToSave)
CLOSE TABLES ALL

What have I missed?
I ain't skeert of nuttin eh?
Yikes! What was that?
Next
Reply
Map
View

Click here to load this message in the networking platform