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:
01451201
Views:
31
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform