Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group by date portion of datetime
Message
From
28/04/1997 19:34:35
 
 
To
28/04/1997 11:21:16
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00029545
Message ID:
00030010
Views:
45
>>>Does anyone know how to group a result set on just the date portion of a datetime column using SQL pass-through?
>>
>>Just select one more column: datepart as date(datetime field) and group on this column.
>>
>>Vlad
>
>The DatePart function in MS SQL server doesn't allow you to return the entire date portion. I would have to concatenate the year, month and day portions and I'm hoping to avoid that.

I don't know MSSQL. Are you using VFP? How do you access the SQL database? Via ODBC?

If yes, you should be able to use date( your_datetime_field) which should return the date part of datetime field.

Vlad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform