I am quite new to SQL this may be a simple problem.
I have a column with month and year values in it. all values are similar to 200207 and 200205 4 digit year and 2 digit month.
When i do a select statement at the moment the coloumns come as follows:
rec_id | month | e.g select * from orders
------ -------
1 200205
2 200207
I would like a select statement that changes the format of the way the date is displayed without changing the structure of the table. The field type for date is int.
ideally this is how i would like it to look like:
rec_id | month2 |
------ ----------
1 May 2002
2 July 2002
Any help would be much appreciated.
If really necessary I could change the structure!
Thanks
I have a column with month and year values in it. all values are similar to 200207 and 200205 4 digit year and 2 digit month.
When i do a select statement at the moment the coloumns come as follows:
rec_id | month | e.g select * from orders
------ -------
1 200205
2 200207
I would like a select statement that changes the format of the way the date is displayed without changing the structure of the table. The field type for date is int.
ideally this is how i would like it to look like:
rec_id | month2 |
------ ----------
1 May 2002
2 July 2002
Any help would be much appreciated.
If really necessary I could change the structure!
Thanks