Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Grouped By Two Parts of Date
Message
 
À
26/02/2010 08:18:33
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01451199
Message ID:
01451201
Vues:
32
>I need help creating an SQL statement where the records sum certian fields and is grouped by the YEAR and MONTH of a date field.
SELECT YEAR(DATE()),MONTH(DATE())  FROM anytable GROUP BY 1,2
SELECT YEAR(DATE()),MONTH(DATE())  FROM anytable GROUP BY YEAR(DATE()),MONTH(DATE())
MartinaJ
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform