Converting month/year to month number? (merged) [message #335171] |
Mon, 21 July 2008 05:41 |
tondapi
Messages: 99 Registered: August 2007 Location: usa
|
Member |
|
|
Hi,
I hae month/year column,But i want to convert in to month number.
Which function we use to slove this issues.Can any one help me?
example: i have apr-2008,may-2008....etc.But i wan to see like month numbers
|
|
|
|
|
|
Re: Converting month/year to month number? [message #335206 is a reply to message #335171] |
Mon, 21 July 2008 07:46 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
tondapi wrote on Mon, 21 July 2008 06:41 | Hi,
I hae month/year column,But i want to convert in to month number.
Which function we use to slove this issues.Can any one help me?
example: i have apr-2008,may-2008....etc.But i wan to see like month numbers
|
Another asinine model by you.
Ok, now you are going to convert a DATE stored as a VARCHAR2 into another VARCHAR2 and when you try to sort, you are going to get this order:
1
10
11
12
2
3
4
5
6
7
8
9
Good move! Would you stop digging yourself deeper holes and create a proper data model? What is your background, law?
|
|
|
Problem in month-year column? [message #336542 is a reply to message #335171] |
Mon, 28 July 2008 01:50 |
tondapi
Messages: 99 Registered: August 2007 Location: usa
|
Member |
|
|
Hi,
In my database, i have one column name is month-year. The values for this object is Apr 2008,mar 2008,may 2008......etc.
My problem is i want to divided month separately and year separately and i want to convert month in to month number.Which function we use to solve this issues?
Note: don't use extract
|
|
|
|
|
Re: Problem in month-year column? [message #336550 is a reply to message #336542] |
Mon, 28 July 2008 02:12 |
|
Michel Cadot
Messages: 68722 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Quote: | Note: don't use extract
|
Why? Is this a homework? And why do you create a new topic for the same question? It is the third time you ask the same thing are you unable to learn?
A date is a date and not a string or a couple of numbers.
Regards
Michel
[Updated on: Mon, 28 July 2008 02:13] Report message to a moderator
|
|
|
|
|