You are here: Re: selecting records based on date « MsSQL Server « IT news, forums, messages
Re: selecting records based on date

Posted by Jack Vamvas on 03/18/07 08:50

Something like : SELECT myCol1 FROM myTable WHERE DATEPART(mm, Dates) =
'<insert month>',DATEPART(yy, Dates) = '<insert year>'



--

Jack Vamvas
___________________________________
Advertise your IT vacancies for free at - http://www.ITjobfeed.com



"Eugene Anthony" <solomon_13000@yahoo.com> wrote in message
news:45f99426$0$502$815e3792@news.qwest.net...
>I have a table that has a DateTime column which uses a DataTime
> datatype. How do I retrieve a range of records based on the month and
> year using ms sql?
>
> Eugene Anthony
>
> *** Sent via Developersdex http://www.developersdex.com ***

 

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

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