Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Grouped By Two Parts of Date
Message
 
To
26/02/2010 08:18:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01451199
Message ID:
01451200
Views:
52
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform