What does Order By -1 mean?

Hi
Can anyone tell me what does and Order By clause with -1 mean...it's pretty confusing to me, never seen before?
Thanks
Rashed

Manik wrote:
it means order by the very first column from the select list.
Cheers,
Manik.
There is not "1" is "-1"
Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
SQL>
SQL> select * from(
  2  select 1,2 from dual union all
  3  select 3,1 from dual union all
  4  select 10,-15 from dual union all
  5  select 2,5 from dual
  6  )
  7  order by 1
  8  /
         1          2
         1          2
         2          5
         3          1
        10        -15
SQL>
SQL> select * from(
  2  select 1,2 from dual union all
  3  select 3,1 from dual union all
  4  select 10,-15 from dual union all
  5  select 2,5 from dual
  6  )
  7  order by 2
  8  /
         1          2
        10        -15
         3          1
         1          2
         2          5
SQL>
SQL> select * from(
  2  select 1,2 from dual union all
  3  select 3,1 from dual union all
  4  select 10,-15 from dual union all
  5  select 2,5 from dual
  6  )
  7  order by -1
  8  /
         1          2
         1          2
         3          1
        10        -15
         2          5
SQL>
SQL> select * from(
  2  select 1,2 from dual union all
  3  select 3,1 from dual union all
  4  select 10,-15 from dual union all
  5  select 2,5 from dual
  6  )
  7  order by -2
  8  /
         1          2
         1          2
         3          1
        10        -15
         2          5
SQL>
Ramin Hashimzade

Similar Messages

  • I have many photos that are visible as thumbnails in the Pictures Library, however when I try to open them in a big screen they show a back screen with an exclamation mark in a triangle.  What does this exclamation mark mean ?

    I can see my images in the libarary as thumbnails but when i try to edit/email some of them become Exclamation Marks in a triangle.
    What does the exclamation mark mean and how to i retrieve the photo

    The exclamation make is an indication that iPhoto has broken the file path to the original photo.
    Make a temporary, backup copy (if you don't already have a backup copy) of the library and apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • HT4061 what does the apple icon mean when its the only thing that appears on the screen

    what does the apple symbol mean when its the only thing that appears on the screen

    That yur iPod is sick
    Try the following to fix:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • What does "unresponsive script" warning mean?

    what does "unresponsive script" warning mean?

    I'm having the same problem with Firefox 19 on both OS X and Windows 7. It seems to be tied to Facebook (which I have as a pinned tab). I don't have to force quit though - just hit the 'stop script' button and things proceed as usual.
    I've a bug report into Firefox - if you don't have Facebook open in a tab, I don't know why you're getting the same error message.
    Clinton
    Update: Just received a reply - I'll give it a shot:
    "Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.

  • I got an iphone from Hong Kong which is locked one. Can anyone explain me what does a locked iphone means. How do I use it in India now, with my own sim card. How do I unlock it???

    I got an iphone from Hong Kong which is locked one. Can anyone explain me what does a locked iphone means. How do I use it in India now, with my own sim card. How do I unlock it???

    If your iPhone is locked to a wireless provider, only that wireless provider
    can unlock it. Contact the wireless provider in Hong Kong to see if they
    offer unlocking and if you qualify.
    If your iPhone is locked to an AppleID that you do not know, return it for
    a refund as it is useless. Only the person whose AppleID was used for
    activation can remove the lock. There is no workaround for Activation Lock.
    If neither of the above is what you are facing, provide more detail so someone
    may offer a solution.

  • I was playing with my ipad settings (it's an older model) and noted in the advanced settings of Safari there was a place to view website databases.  When I clicked on this I saw websites.  How do these get there and what does the space amount mean?

    I was playing with my ipad settings and noted in he advanced settings of Safari there was a place to view "website databases".  When I selected this I saw a multitude of websites.
    Can anyone tell me how these get there?  Can a website be posted even if it was never went to?  What does the space amount mean?  For example, 1.5 kb...is this quite a bit?  Would it indicate someone has gone to a site multiple times?
    I share my ipad with my teenage daughter and I'm trying to find out if she's lying to me.  Obviously she's swearing that she has "no idea" how these got there and I'm trying to keep her safe (she's only 14).
    Thanks everyone.
    Concerned Mom

    Think of your PC and the 'temporary internet folder' where it keeps cached copies of web pages or elements off a web page for 'quicker display the next time you visit'. That's pretty much what that folder is. 1.5K is tiny. Probably just a basic page with some text on it. (you might be confusing 1.5K with 1.5 megabyte....megabyte is large...it's roughly 1000 kilobytes, so the 1.5K is a tiny file)
    As far as I know, the only way info gets into that folder is if the browser has been to that site.
    if you have a concern there are browsers out there, McGruff is one i've seen recommended, that allow some degree of parental control and supervision. That or you could passcode lock the iPad or enable the restrictions to turn off some parts of the device to have some control.

  • What does (error code -600) mean?

    What does (error code -600) mean?
    I received this code in a pop up window while trying to open iTunes from my Apps folder.

      procNotFound             
    = -600, /*no eligible process with specified descriptor*/
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    Any change?

  • What does "extracted channel PDF" mean and why does it continually duplicate on my desktop?  I think it happens when I move a file in Finder to another file and when I copy some web files.  How do I avoid this on my Mac (Mavericks)?  Thanks for your help!

    What does "extracted channel PDF" mean and why does it continually duplicate on my desktop?  I think it happens when I move a file in Finder to another file and when I copy some web files.  I have to immediately move to trash all the duplications on my desktop.  How do I avoid this on my Mac (Mavericks)?  Thanks for your help!

    What application is set to open PDF files? If you CNTRL click on the file and open with Preview does the problem occur?
    If not change the default application to open PDF files to Preview.
    You can do this by highlighting the file and either use CMD i or Get Info , this will open a window with the info on the file with an option to change the application that opens the file.
    That's all I can think of.

  • I understand that when using Numbers/Pages - an up-arrow on a document means that the file is still to be uploaded to the cloud, what does a down arrow mean? It seems the document can't be accessed until the arrow clears.

    I understand that when using Numbers/Pages - an up-arrow on a document means that the file is still to be uploaded to the cloud, what does a down arrow mean? It seems the document can't be accessed until the arrow clears.

    I believe what it's supposed to mean is that some changes were made to the document on another device, and those changes were saved back to the cloud.  Now you've opened iWork on a different device to access that document - it compares the document you've got locally with the one in the could, sees some recent changes and downloads them.
    What gets me is why this sometimes happens even when I've not made any changes to a document from another device.

  • What does "on my mac' mean and how do i delete or reduce the number of items in there?

    What does "on my mac" mean and how do i delete or reduce the number?

    Hi ya
    I'm seeing this on my email screen, on the left hand side - under the "RSS Apple".  The number of items in there is now 752.  It's preventing me from sending and receiving emails in my AOL account.
    Any  help would be deeply appreciated.
    Thank you.

  • What does "update carrier settings" Mean?  Settings for what?

    What does "update carrier settings" Mean?  Settings for what?

    It means just what it says. Carrier settings are the settings the carrier installs on the phone to connect it properly to their network. Periodically, carriers push updates to those settings. You should accept them.

  • HT1766 what does restor back up means/what does it do

    what does restor back up mean?/what does it do

    it stores all the data on your device in another place so that you can restore from it if a problem happens (say your device crashes or gets erased). then all your data is restored to your iPhone/iPod/iPad/Mac.

  • What does "Upgrade Your Device" mean for a VZW customer?

    I had a LG Octane and "upgraded" to LG Cosmos at the end of my contract. The Octane does not have a camcorder but the Cosmos did. To me this was a "downgrade." I learned of this "downgrade" after I had the "upgraded" a few weeks. I believe Verizon's use of the term "Upgrade Your Device" is deceptive and a false promise. Verizon representatives refuse to recognize this "upgrade" as a "downgrade." I am stuck with a downgraded phone for more than another year before I can upgrade again without paying the full cost of a phone! So what does "Upgrade Your Device" mean when used on the Webpage of your Verizon Account?

    grandpaluther wrote:
    I had a LG Octane and "upgraded" to LG Cosmos at the end of my contract. The Octane does not have a camcorder but the Cosmos did. To me this was a "downgrade." I learned of this "downgrade" after I had the "upgraded" a few weeks. I believe Verizon's use of the term "Upgrade Your Device" is deceptive and a false promise. Verizon representatives refuse to recognize this "upgrade" as a "downgrade." I am stuck with a downgraded phone for more than another year before I can upgrade again without paying the full cost of a phone! So what does "Upgrade Your Device" mean when used on the Webpage of your Verizon Account?
    "I had a LG Octane and "upgraded" to LG Cosmos at the end of my contract. The Octane does not have a camcorder but the Cosmos did."
    The upgrade is that your new phone has a camcorder. Your old phone did not.
    The word upgrade means to me getting a new phone that has features that my old phone didn't have and that i will actually use.

  • When exporting a slideshow, what does "current frame rate" mean?

    I'm exporting a slideshow from iPhoto '11 and I'm using custom settings
    I am wondering when you click the custom settings button
    what does "current frame rate" mean?
    does it mean use the current frame rate that it uses to let me preview the slideshow?

    Welcome to the Apple Discussions. What happens to the slideshow other than giving you this error. Don't know what it means. However, several users have reported iPhoto crashing when trying to export a slideshow. You might search this forum for that to see if you're experiencing something similar. As far as I know there was no fix found.
    Be sure to report it to Apple via via http://www.apple.com/feedback/iphoto.html.
    OT

  • What does the RHD symbol mean when using the multiple speakers?

    i have two 1st gen apple TVs and when i pull up the multiple speakers prompt, i see an acronym "RHD" after each device.
    what does the RHD symbol mean when using the multiple speakers?
    typically i was used to seeing the Apple TV-1  vs. Apple TV-1-RHD??
    What is the difference?

    It's been modified to run Remote HD.
    http://remotehd.com/

Maybe you are looking for

  • Dual boot issues

    I've been attempting to get up to speed on labview, labview RT, the PXI (8106), and getting the PXI to dual boot labview RT and windows XP. Question here is only about dual booting. I have the PXI set up with a fat32 partition physically before (C th

  • Mac os 10.4.11 and iphone4

    I have a macbook on os 10.4.11 so if i activate my iphone4 on windows 7 will i be able to get all my contacts and stuff from my macbook by syncing it afterwards

  • Where are my purchases gone

    Hi my I-phone died, so I got a new one from apple. I bought on my old phone via the apple store as the computer I registered the old phone with was gone. so I never could back up my stuff, my apple account says I have purchsed the albums but only the

  • Inspection lot generation for 343 movement type.

    Hi,expert, My client's requirement is to generate inspection lot when a specific type of material is transferred from block stock of a storage location to unrestricted stock of another storage location i.e. movement type- 343, can anybody please expl

  • Recropping  Smart Object leaves transparent borders

    I cropped in ACR ( CS3 ) and opened in Photoshop as Smart Object. I went back to ACR to recrop a bit smaller. Returning to Photoshop I have borders of the transparent cross-hatching. When displayed in Bridge, the borders show as white. How can I get