Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Understanding DATEDIFF()
Message
De
16/04/2015 21:34:55
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01618557
Message ID:
01618580
Vues:
27
>I suspect some dates have time in them and also Michel is using floating math by using 86400.00, for example. Try that for your example.
>
>Interestingly, I can not reproduce the problem myself anymore in my tests although first time I tried I also got incorrect result.
>
>Tried several tests, but it's now working OK for me every time. But I am absolutely sure that earlier today when I first tested I got wrong results.

I need to do some reorg in that. The first thing would be to use positive approach such as storing working hours instead. By that, I wouldn't have to do a post process to substract from the maximum range the subset found. I also need to adjust some data as it was not properly built. I will post my findings once I sort this out.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform