Hello
I have a view which currently has a datetime field in the following format: 01/07/2003 12:01:44
I would like just the month and year so I would like it to look like: 07/2003.
Alterantively I would like to basically filter on all data where it lies between last month. I have tried using '>MONTH(GETDATE())-1' but this brings back random dates back.
Can anyone show me a way of capturing data from the previous month. This needs to be automated so a BETWEEN stateement is no good to me.
Can anyone help?????
I have a view which currently has a datetime field in the following format: 01/07/2003 12:01:44
I would like just the month and year so I would like it to look like: 07/2003.
Alterantively I would like to basically filter on all data where it lies between last month. I have tried using '>MONTH(GETDATE())-1' but this brings back random dates back.
Can anyone show me a way of capturing data from the previous month. This needs to be automated so a BETWEEN stateement is no good to me.
Can anyone help?????