You are here: Re: SQL Between Dates « MsSQL Server « IT news, forums, messages
Re: SQL Between Dates

Posted by @sh on 09/13/06 12:39

Interestingly, the following SQL works perfectly as well...

SELECT *
FROM sol_session sol_session_1
WHERE (DateGiven = '13/09/2006')

But change the = to a > and it doesn't give me any results!?

Cheers, @sh


"@sh" <spam@spam.com> wrote in message news:usCdnVsa9K1cZJrYRVnyhg@bt.com...
> Thanks again for your help here!!
>
>> SELECT *
>> FROM SOL_Session
>> WHERE DateGiven >= '10 Sep 2006'
>> AND DateGiven <= '13 Sep 2006'
>
> I get a listing of CORRECT results ;o)
>
>
>> SELECT *
>> FROM SOL_Session
>> WHERE DateGiven >= '20060910'
>> AND DateGiven <= '20060913'
>
> Another list of correct results - are these good or bad findings?
>
> Cheers, @sh
>

 

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

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