Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Supporting syntax in VFP
Message
 
 
To
20/12/2010 22:03:37
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01493411
Message ID:
01493423
Views:
75
>>
>>select convert(char(6), myTable.myDateField,112) as YearMonth, ...
>>
>>from myTable
>>group by convert(char(6),myTable.myDateField,112)
>
>Thanks, I assume 112 has a specific meaning to return the value.

Yes. Check CAST & CONVERT for all available formats. 112 is the ISO format 'yyyymmdd'
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform