Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Grouped By Two Parts of Date
Message
De
26/02/2010 08:21:33
 
 
À
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:
01451200
Vues:
53
>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) AS YearDate,
       MONTH(Date) AS MonthDate,
       .............
FROM ....
GROUP BY YEAR(Date),
         MONTH(Date)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform