Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Server DateTime in SQL Select
Message
De
10/05/2010 10:46:15
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01463837
Message ID:
01463948
Vues:
30
>>I got what? What you don't get is BETWEEN doesn't provide any problem with datetime values. You get what you ask for, isn't it?
>>Cetin
>
>It surely does present a problem already clearly explained. If you have hard time admitting there is a problem, I let you be and don't be surprised by incorrect results returned by your queries using BETWEEN operator.

BETWEEN never returned to me incorrect results and I still say it would never return incorrect results:) That is the point we can't agree on. There is no clearly explained problem explained. All the copy&pastes you did do tell between would return you the correct result. If that result is not something you want then it is your problem, not Between nor SQL server datetime.

If I said this:
between '2010/1/1 00:00:00' and '2010/2/2 00:00:00'

and SQL server returns me something like:

'2010/2/2 00:00:01'

then that would be a problem. Period.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform