Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GROUP BY 1 no longer works
Message
De
06/02/2003 23:59:03
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00750415
Message ID:
00750438
Vues:
20
>When GROUP BY is used you can only include in the column list columns listed in GROUP BY or aggregate functions.

As per my last rely to Carole, I tried that and it doesn't work either. That's the one I tried:
SELECT TOP 40 New.Numero,New.Type,New.Titre,New.Message,New.Month,New.Year,New.Page,;
 New.Url,New.Creation,New.Titre_P,New.Titre_S,New.Message_P,New.Message_S FROM New;
 INNER JOIN NewAll ON New.Numero=NewAll.NoNews;
 WHERE NewAll.NoClient=tnZone AND New.Status=1 AND (NOT INLIST(New.Type,7,10) OR;
 (New.Type=7 AND New.Date>=ldDateEvent) OR;
 (New.Type=10 AND New.Date<=ldDateEvent AND New.DateFin>=ldDateEvent));
UNION;
SELECT New.Numero,New.Type,New.Titre,New.Message,New.Month,New.Year,New.Page,;
 New.Url,New.Creation,New.Titre_P,New.Titre_S,New.Message_P,New.Message_S FROM New;
 INNER JOIN New AS New2 ON New.NoUserGrou=New2.Numero;
 INNER JOIN NewAll ON New2.Numero=NewAll.NoNews;
 WHERE NewAll.NoClient=tnZone AND New.Status=1 AND INLIST(New.Type,13,15) AND;
  LEN(New.Message)>100;
 GROUP BY New.Numero,New.Type,New.Titre,New.Message,New.Month,New.Year,New.Page,;
  New.Url,New.Creation,New.Titre_P,New.Titre_S,New.Message_P,New.Message_S
 ORDER BY 9 DESC INTO CURSOR Temp
Can you provide the proper syntax in this case?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform