Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT-SQL with distinct doesnt work
Message
 
 
To
08/11/2002 23:07:35
Peter Wagner
Point Informática Ltda.
Limeira, Brazil
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00720590
Message ID:
00720594
Views:
19
This message has been marked as the solution to the initial question of the thread.
You've to convert memo field into string for select with DISTICST clause to work. I would recomend to use PADR() function to do that because ALLTRIM() could produce unpredictable results.
SELECT DISTINCT EMP_ID, PADR(notes,254) AS notes ;
  FROM EMPLOYEE WHERE COUNTRY = 'UK'
BTW, there're also other changes in SELECT-SQL that make it more ANSI SQL compatible. You can switch SQL engine into VFP7 compatibility mode with new SYS(3099) function.
? SYS(3099, 70)
However, it will also turn off any bug fixes in SQL engine in VFP8.

>Thanks for the info Sergey !
>
>Do you have an sample how to wrap and MEMO field using alltrim that works in VFP 8.0 Beta?
>
>PETER
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform