|
|
|
|
Re: How to get the Months (Jan to Dec) of the year through SQL Query? [message #221705 is a reply to message #221702] |
Wed, 28 February 2007 02:18 |
JRowbottom
Messages: 5933 Registered: June 2006 Location: Sunny North Yorkshire, ho...
|
Senior Member |
|
|
You could even use the brute force solution:SELECT month FROM (
SELECT 'Jan' Month from dual union all
SELECT 'Feb' Month from dual union all
SELECT 'Mar' Month from dual union all
SELECT 'Apr' Month from dual union all
SELECT 'May' Month from dual union all
SELECT 'Jun' Month from dual union all
SELECT 'Jul' Month from dual union all
SELECT 'Aug' Month from dual union all
SELECT 'Sep' Month from dual union all
SELECT 'Oct' Month from dual union all
SELECT 'Nov' Month from dual union all
SELECT 'Dec' Month from dual);
It's not pretty, but it works.
|
|
|
|
|