Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 sql question

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2003-12-30 : 12:08:22
Usman writes "Sir tell me what is builtin function and tell me that who we can get one month record of any table with help of sql.Thanx"

X002548
Not Just a Number

15586 Posts

Posted - 2003-12-30 : 12:47:17
Look up function in Books online...

SELECT * FROM myTable WHERE DATEPART(mm,Col1) = '12'


Brett

8-)
Go to Top of Page
   

- Advertisement -