Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CHRTRAN() breaks SELECT – SQL command with GROUP BY clause
Message
De
27/06/1998 18:06:56
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
CHRTRAN() breaks SELECT – SQL command with GROUP BY clause
Divers
Thread ID:
00112203
Message ID:
00112203
Vues:
73
Hi all!
I have found that the CHRTRAN() function breaks SELECT – SQL command with GROUP BY clause.

Example:

CREATE CURSOR PostCode (cPostCode C(15))
INSERT INTO PostCode (cPostCode) VALUES ('M 3 J 1 M 5')
INSERT INTO PostCode (cPostCode) VALUES ('M3J1M5')

* No problem !
SELECT DISTINCT CHRTRAN(cPostCode,' ','') ;
FROM PostCode

* SQL: internal error ???
SELECT CHRTRAN(cPostCode,' ','') ;
FROM PostCode ;
GROUP BY 1

What is wrong with second SELECT – SQL command?

Thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform