Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adjusting a SQL to be compliant with ANSI
Message
 
 
To
07/02/2003 16:37:02
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00750823
Message ID:
00750837
Views:
22
This message has been marked as the solution to the initial question of the thread.
Michel,

You can use MIN() or MAX() function for fields you don't want to group.
SELECT MAX(SELECT SYS(15,m.euroansi,Ville)) AS City,UPPER(SYS(15,m.euroansi,Ville)) AS City2, ;
>Take the following SQL in VFP 7:
>
>
>SELECT SYS(15,m.euroansi,Ville) AS City,UPPER(SYS(15,m.euroansi,Ville)) AS City2,;
> COUNT(*) AS Compteur FROM Member WHERE Member.NoPays=lnCountry;
> ORDER BY 3 DESCENDING GROUP BY 2 INTO CURSOR Temp
>
>
>How can I make this one compliant with ANSI SQL in VFP 8?
>
>I adapted so far over 20 SQL that I had but this one is really something. Anyone knows how to do it? The problem here is that we have to keep two string values. One is the city without accented characters and the second one is the city in upper case which is one for the group by. Both has to be kept from the original SQL as otherwise we will loose the original state of the city as per its casing. But, as the new ANSI format in VFP 8 doesn't like it, we have to adapt this SQL. If anyone knows how to do it, it'll be appreciated.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform