How can I sort a coloumn with names of months?

Hi I m using oracle 11 g how can I adjust the coloumn with month names

My requiremnt is to sort the coloumn from July to June

means that the July should be the first and June shoud be the last month of the year

need help thnx

You can also...

kendenny wrote:

Or this

SQL > WITH m AS
2 (SELECT "January" mname FROM dual)
3 UNION ALL
4. SELECT "February" mname dual FROM
5. ANY TRADE UNION
6. SELECT 'Mars' double mname
7 UNION ALL
8. SELECT "in April" mname dual FROM
9 UNION ALL
10. SELECT mname "Peut" double
11 UNION ALL
SELECT 'June' 12 mname dual FROM
13 UNION ALL
14. SELECT "July" mname dual FROM
15 UNION ALL
16. SELECT mname "Augustus".
17 DOUBLE
18 UNION ALL
19 SELECT "September" mname
20 DOUBLE
21. ANY TRADE UNION
22. SELECT "October" mname
23 DOUBLE
24 UNION ALL
25 'November' SELECT mname
26 DOUBLE
27 UNION ALL
28 mname SELECT "December".
29 DOUBLE)
30 SELECT mname
31 m FROM
32 ORDER BY TO_CHAR (ADD_MONTHS (TO_DATE (m.mname, 'Month'),-6), 'MM');

MNAME
---------
July
August
September
October
November
December
January
February
March
April
May
June
12 selected lines

Tags: Database

Similar Questions

  • How can I sort my artists by name in itunes

    How can I sort my artists by name in itunes?

    Mark,

    iTunes has absolutely no concept of "last name."  It is simply a lexical sort on the text in the field of the Album.

    If you want to leave the name of the artist he is, but ignore it for sorting, you can enter data in the field artist sorting, which is on the tab of sort for each song.  Use the format "Lastname, Firstname" to get the kind you want.

  • How can I sort a list of names in alphabetical order?

    I make a list of the members of the Organization and would like to list alphabetically.  However, I can not.  Please help me.  Thank you

    I use Word

    =========================================
    It would be good to know which version of Word...

    Anyway... in Word 2007...

    Select (highlight) all the text that you want to get an alphabetical sort...

    Reach... Home tab / paragraph section / sort button...

    This will open the screen of text so...

    To sort by starting with A... remember "Ascending" is checked
    and on the left, click on the OK button.

  • How can I sort my favorites by name?

    I want to sort my Firefox bookmarks by name (alphabetical order), but I can't seem to find a way to do it. What I want is to sort them by name when I open the bookmarks in the bookmarks toolbar, same way they are sorted in Internet Explorer when you use "sort by name". I managed to sort them in the bookmarks library, but this does not seem to translate to the bookmarks menu in the toolbar.

    Please help me with this.

    Thank you
    Veselin

    Types in the library window (bookmarks > show all bookmarks) is for temporary display in the library window only and return to sorted after the closure of the Library window.

    An add-on to sort and keep your bookmarks automatically sorted, including Bookmarks Toolbar folders and files sorting options in the Bookmarks Toolbar folder:

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • How can I sort my files by name, but the content by date?

    I am on Windows 7 and trying to sort my files in the order of name and the contents of each folder in date order, but if I change IT automatically changes them both?  How to do this?

    You can not in Vista - that option is not available.  The following items can help you with the setting folder models and change the sort order to some degree Vista allows:

    Here's how to change the default template for a folder: http://www.vistax64.com/tutorials/70819-windows-explorer-folder-view-settings.html.  Default behavior is to select the model based on the first type of file placed in the folder (you must choose something).  Vista sets the folder type template according to what are the types of files in the window and the settings display window Explorer. This will show you how to reset the Windows Explorer folder view settings, disable Automatic folder Type discovery and increase the view of the folder cache to have Vista don't forget display settings, model of file type, size, or position of a specific window for when it was still closed to the location of specific path.

    It does not work with the Sub record under, Open with, open in a new tab (Internet Explorer), etc... dialog windows of type through the good File menu bar item. These don't seem to be able to have their size or their position to recall. For the latter, you can use the free program http://autosizer.en.softonic.com/ to resize them.

    Here is another article on how to modify the columns in Windows Explorer and sort in Vista: http://www.vistax64.com/tutorials/108665-column-customize.html.  This will show you how Add, Remove, move, change the widthand change the sort order of the columns in Windows Explorer in the way that you want.

    Here is another article on how to change the display of the default folders in Vista (but she argues, it is not a perfect solution and can revert to the previous behavior is not as good as the two prior links provided: http://news.cnet.com/8301-13880_3-10019957-68.html.)

    I hope this helps in your situation.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How can I sort my media file name of the project "icon view"?

    Hi all. I am trying to sort my media in the 'Project' Panel while displayed his point of view 'icon' file name and it's not working (I am running first Pro CC on a Windows 7 machine).

    I can sort very well in the project "List View" of the Group (by clicking on one of the headers, which is on the file header), but once I have switch back to "Display the icon" they lose their sort order (they seem to come to some sort of 'disorder' of the thing...)

    I'm sure that my files are already sorted by file name when I click on the import button and access to view of Windows Explorer, but it does not help either.

    Any suggestions? Thanks to you all.

  • How can I sort my favorites by name so that the files always come first?

    I want everything in alphabetical order with records always be sorted and ranked first at the top level and in the subfolders as well.

    See this support article: https://support.mozilla.org/en-US/kb/sort-bookmarks-quickly-find-ones-you-want

    • "Tri" is done at the file level only, level up to a line of separation, if you added one of them
    • first of all, followed by individual bookmarks folders
    • 'gender' does not extend in the files, unless it has been changed recently - if you have a multiple-level folder structure, can sort must be made in each case and each level, iirc - I only 2 levels deep when you set up folders, YMMV so when go deeper

    And to see this last paragraph: https://support.mozilla.org/en-US/kb/sort-bookmarks-quickly-find-ones-you-want#w_sorted-views-in-the-library-window the sort order (by using the view above) in the library of the window is for viewing only and will not appear in the bookmarks menu or button bar. It's a 'view' temporary 'comes out' which lasts as long as the windows of the library is open.

  • Firefox 4 for MAC: How can I sort the bookmarks by name that are not in the files?

    Solution in site and forum, Firefox does not work on Firefox 4 for Mac, i.e. Control View-Sidebar-bookmarks, etc.

    All the Favorites are in folders.

    • The Bookmarks Toolbar folder stores the bookmarks that you see on the (view > toolbars >) Bookmarks Toolbar.
    • The bookmarks Menu folder stores the bookmarks that you see in the menu bookmarks and create via ' bookmarks > bookmark this Page "or" bookmark this link "in the context menu.
    • The Unsorted Bookmarks folder stores which inserts created bookmarks by clicking on the star on the right end of the address bar.

    You can right click on a such main folder (root) to sort the bookmarks in that folder.

    You may need on Mac:

  • How can I sort my photos to the Organizer in order of file name?

    How can I sort my photos in 'Order of file name' to the Organizer?

    Do you use items 11?

    This is the only version do not support sort order of file name.

  • How can I configure the element with the script names?

    Could Hello someone give me a hand?

    I created symbols on the stage of this script below.

    ------------------------------------------------------

    for (k = 0; k < 5; k ++) {}

    sym.createChildSymbol ("mySymB", "Stage");

    }

    ------------------------------------------------------

    How can I configure the element with the script names?

    Because, when I try to control a symbol by using the getSymbol("---") command.

    I need to know the name of the item given to each symbol.

    Concerning

    Yes, you're right.

    Using 'Code-Example' If you write sym.getSymbol ("mySymB") that edge returns the undefined value.

    With "Drag-and-drop-Example", you can use sym.getChildSymbols ().

  • How can I sort more by last used date?

    Hello:

    How can I sort the apps on my phone by date of last used?  I know, that there was a way in ITunes but this option isn't there anymore.  It's by name, size, or type I believe.

    I have far too many apps because I let my grandchildren play games.  I'd like to see what games they actually use.

    Thank you!

    Dianne

    To my knowledge, this capability does not exist... at least, I've never seen.

    Barry

  • My e-mail account has a padlock on the envelope, and when I try to get new messages, it won't let me. How can I sort this?

    The account on Thunderbird for my e-mail address won't let me update my box in. When I go to 'New Messages' there is a lock on the envelope and I get all new messages. How can I sort this allow mw to receive my massages?

    The padlock just means it's a narrative that uses a secure connection. It is unlikely to have nothing to do with your inability to pass messages. Who is the account provider?

  • Can I sort the mailbox by name in the Mac mail?

    I put my old emails in folders (aka the mailboxes) and keep them on my Google mail.  If I got to Google mail online, my mailboxes are all sorted by name in alphabetical order, but when I go back to my Mac mail, they are in the chronological order in which they were created.  How can I sort my mailbox of e-mail Mac by name?

    I don't see an option alpha re arrange mailboxes mailbox or folders - but you can drag the top / down to re arrange them.

    You may submit any comments here re Mail

    http://www.Apple.com/feedback/mail.html

  • How can I sort pictures

    How can I sort my photos for the oldest to newest.

    What version of Photos do you use?

    With Photos 1.2 and later you can sort the photos in an album or smart album by one of these with the discovered ➙ sort menu:

    According to the times (pictures), pictures are sorted by date with the oldest first or at the top of the window.  With the pictures window, they are sorted by date added to the library with more old photos at the top of the window.

    In pics 1.1 and 1.0 the only available sort order was with the oldest date first.

  • How can I share my files with my friends?

    How can I share my files with my friends?

    I'm tempted to say "the same way you share small files" but I suspect that you are having some kind of problem you describe sharing of large files.  What file size do you start hving problems?  How do you share your files (email, messenger, via a network, whatever) and what is the EXACT name and version of the program that you are using?  This error message you get when you try to share a file too big (the EXACT, including all codes message)?

    One solution is to compress the files so that they are smaller in size.  This sometimes helps a lot and sometimes, does virtually nothing (especially according to the type of file) - but it's worth a try.

    Here are two articles on the implementation of compression in Vista right click: http://www.vistax64.com/tutorials/65254-zip-file-support-restore.htmlandhttp://www.vistax64.com/tutorials/93827-zip-file-compressed-folders.html. These articles should tell you how to activate and deactivate the compaction and reset the compression options in Vista.

    If you can not get Vista compression/decompression works correctly despite these instructions, you can simply try to download and install 7-Zip http://www.7-zip.org/ which provides essentially the same functionality in a free and easy to use program.  Many people use this program (or other similar) instead of Vista program for various reasons.

    Amother option with certain types of files is to convert other types of files which take less space (such as the conversion of a TIFF file in a JPG file).  It isn't exactly the same thing, but most of people it would be hard to notice the difference (and sometimes the difference is not visible to the naked eye or on a monitor).  To help here, we would need to know the types of files of these large files.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for