You are here: Re: WHAT DO I USE TO MAKE A TODAY DATE QUERY? « MsSQL Server « IT news, forums, messages
Re: WHAT DO I USE TO MAKE A TODAY DATE QUERY?

Posted by Ross Presser on 07/22/05 17:04

On 22 Jul 2005 06:15:53 -0700, Stu wrote:

> WHERE (dbo.Membre.Date_MAJ > GETDATE() - 1) AND
> (dbo.Membre.Date_MAJ <
> GETDATE() + 1)
>
> is looking for dates that fall between NOW (in Access terms) and NOW
> minus 1 day.

actually, it's looking for dates that fall between NOW -1 and NOW + 1 day.
As I write this, therefore, it would match anything between 7/21 10:04 AM
EDT and 7/23 10:04 AM EDT.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация