Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace batch update on daily basis
Message
De
15/02/2009 17:57:19
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Web
Divers
Thread ID:
01381959
Message ID:
01381977
Vues:
12
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform