|
-
April 5th, 2001, 01:05 AM
#1
SQL statement for specific month
hello,
is there any way to retrieve for records that the datefield match only the specific month of a year.
for example:
if I want to retrieve the expenses record that occur in the month of january.
really need your help.
best regard usin.
-
April 5th, 2001, 02:40 AM
#2
Re: SQL statement for specific month
In SQL Server,
SELECT * FROM MYTABLE WHERE DATEPART(mm, MYDATEFIELD) = 01
-
April 5th, 2001, 02:47 AM
#3
Re: SQL statement for specific month
thank you very much.
i have rated you excellent.
usin.
-
April 5th, 2001, 07:04 AM
#4
Re: SQL statement for specific month
Also you can use
select * from table where Month(YourDate) = 05
Iouri Boutchkine
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|