Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Filter On DateTime Field with notime
Message
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
How to Filter On DateTime Field with notime
Divers
Thread ID:
00742929
Message ID:
00742929
Vues:
53
I have two fields EnterRecovery DateTime and ExitRecovery DateTime. I need to filter a query where these fields have 00:00:00 for the time portion. They will always have the date portion. Some of my records have times in them, others don't.

Can I just use some like
declare @ttRecoveryBetween datetime
set @ttRecoveryFrom = '10/01/2002 00:00:00'

select * from meetings 
where EnterRecovery between @ttRecoveryBetween and @ttRecoveryBetween
Thanks
Kirk
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform