Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace batch update on daily basis
Message
From
15/02/2009 17:57:19
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Application:
Web
Miscellaneous
Thread ID:
01381959
Message ID:
01381977
Views:
14
>I got it. See if following select produces correct user count
>
>SELECT DATEADD(day, DATEDIFF(day, 0, @dt), 0) AS HitDate, 
>		COUNT(DISTINCT AddUser) AS CountHit 
>	FROM Hit 
>	GROUP BY HitDate
>
It seems to be fancy. But, I have an invalid column name on HitDate. Also, what would be the value I would need to store in dt? Would it be my oldest date in the Hit table?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform