THESE FORUMS ARE NOW FROZEN
Please choose "Forums" from the Main menu of www.entityspaces.net to get to our new forums.

Getting only DATE

rated by 0 users
This post has 1 Reply | 1 Follower

Top 500 Contributor
Posts 5
muniappan Posted: 05-08-2009 7:46 AM

I want to select and group by only the date part of the datetime(SQL Server) field. I want to see whether the employee is working for the 7th consecutive day. So I am seeing, each one day of the previous 6 days are having atleast one record. Can anybody please reply me, how to do it?

Top 10 Contributor
Posts 905
You could use our DatePart operator in the select, but also having to have the group by currently means you will have to create a custom load method and either use a stored procedure or text mode for your query. An alternate workaround we have used previously is to use the .Between() on the dates.

Regards, Scott Schecter EntitySpaces | Blog | Twitter

Page 1 of 1 (2 items) | RSS
Copyright © 2005 - 2009, EntitySpaces, LLC