Finding the order of a particular entry in a query result

suppose i ve the output of a select query as
emp_id emp_name
101 one
109 nine
112 twelve
120 twenty
from this how can i know the rank of a particular emp_id. For eg: for 112 i must get it as 3, and for 109 i must get 2.Can any one help???????
thanking you in anicipation.

drop table t purge
create table t
(emp_id number(3),
emp_name varchar2(10))
insert into t values(101,'one');
insert into t values('109','nine');
insert into t values('112','twelve');
insert into t values('120','twenty');
insert into t values('113','thirteen');
select *
from t;
EMP_ID EMP_NAME
101 one
109 nine
112 twelve
120 twenty
113 thirteen
5 rows selected
select row_number()over(order by emp_id)rnk,emp_id,emp_name
from t;
RNK EMP_ID EMP_NAME
1 101 one
2 109 nine
3 112 twelve
4 113 thirteen
5 120 twenty
5 rows selected

Similar Messages

  • How Do I Find the Order Number on a Power Mac G5?

    I am trying to find out what order number I have for my Power Mac G5.  I put in the serial number, and I was taken here. 
    Now I have to find out what the order number is, such as M9020LL/A or M9031LL/A
    I tried matching up the specifications with my computer, but nothing matches.  I have "Dual 1.8 Ghz PowerPC G5" processors, but that option isn't on the spec sheet.
    Is there a way to find the Order number?

    Choose About this Mac from the Apple menu and look at the hardware section. If your model is PowerMac7,2, its order number is M9393LL/A. If your model is PowerMac7,3, its order number is M9454LL/A. The LL will be different if the computer was originally sold outside the USA or Canada.
    (69819)

  • How to find the location of a particular font in the framemaker book?

    Hi All,
    please help me in finding the location of a particular type of font in the framemaker book. I was using the following procedure to find out earlier:
    Find > Character Format > (set the character format) > Search.
    Now I am unable to locate a particular type of font using the mentioned procedure.
    Please help me out.
    Thanks in adnavce,
    Mindevil

    This assumes that the font instance being searched for is an override:
    Click in some text in one of the book files.
    Edit > Find/Change
    [ Character Format ...]
    This pops up a Character Format dialog.
    Assuming you are on Windows:
    [Ctrl]+[Shift]+[F8] to set everything to As-Is/blank.
    In Family:, select the font being sought. [Set]
    Back in the Find dialog...
    Look in: <*> Book
    [Find]
    If the font instance is part of a Paragraph Format or Character Format, you can search by Para Tag name or Char Tag name (which is yet another reason why overrides are a problem).
    Or you can save out all the book files as MIF and search with a plaintext editor, but that requires a nominal knowledge of MIF.
    I might add that steps 1-3 above are covered in FM7.1 Help (and presumably the printed manual back then), but are absent for FM9, and I'm guessing that they never returned in later versions either.

  • Finding the order of archive logs in RAC to NON-RAC manual cloning

    Hi,
    I am in the process of automating a RAC to NON-RAC clone using traditional method [ not using RMAN ].
    Here are the steps:
    On Source:
    Record the sequence number and thread of the instance
    put the database in begin backup mode
    copy the files
    disable the backup mode
    record the sequence number and thread of the instance
    prepare the order of the archive logs which will be needed for recovery ==> Here is where I need help
    On Target:
    Restore the backup
    Issue recovery using the order of archive logs identified ==> Failing as order is not correct.
    I am finding the archive logs based on FIRST_TIME# and preparing the order which is not correct. I think i should be using SCN but not sure what should be the criteria.
    Could you please let me know on what basis we can find the order of the archive logs which will be asked during the recovery ?
    Your quick response is appreciated. Thanks in advance for your help.
    Thanks
    Suneel

    Yes, When we execute recover database using backup controlfile until cancel, will prompt for the redo log sequences.
    But as i mentioned before, I am trying script everything and cannot manually enter the sequence numbers required. I need to know the archives and thread it is going to ask [ in what order as well ] so that recovery command can be scripted in shell.
    Please let me know if there is a away to find the order of archive logs which needs to be applied to recover [ if this is a NON-RAC, we can simply go with the sequence numbers but since it is a RAC, i should know the thread number as well ].
    Thanks

  • I purchased premiere elements 13. I followed the instructions. Loged into my account. Located my order number, but can not find the order detail page to download my product

    I purchased premiere elements 13. I followed the instructions. Logged in to my account. Located mu order number but could not find the order detail page to click the download your product button. I was also asked to download the Akamai download manager which i don't understand why. Also It said that once the manager was installed the download would appear in the browser which it never did. So, I have no idea if it did download or not. Not sure what else I can try. Would love some help.

    The Akamai download manager is used to download the software you purchased.  Try the download resources below.  The second one does not use the download manager.
    PE 10, 11, 12,13 - http://helpx.adobe.com/premiere-elements/kb/premiere-elements-10-11-downloads.html
    You can also download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    Photoshop/Premiere Elements 13: http://prodesigntools.com/photoshop-elements-13-direct-download-links-premiere.html

  • H we find the balance for a particular gl account

    h we find the balance for a particular gl account for a particular fiscal year

    Try T-code FS10N it will display G/L balance for a fiscal year period wise & busiseness area wise.
    anya

  • Compromised iTunes Account: Apple Support can't find the order.

    I discovered last weekend that my appleid had been compromised. I had two charges for $40 from iTunes in my PayPal for an allowance to some .cn email address.
    I immediately changed all my PayPal, e-mail, and apple passwords. Then I contacted iTunes support through the website.
    After several days of e-mailing back and forth (one response per day) and sending them two screen shots from iTunes with the order numbers there, they cannot find the orders in their system even with the screenshots, copies of the iTunes e-mail receipts and the PayPal e-mails. On PayPal’s end I clearly have two transactions against my balance. I have started at this point the dispute process with PayPal, I pay all my bills through them so I have the "premier" account which I hope helps my case as I do not want to be out $80.
    I have (had) a jailbroken iPhone 4, and that is the only way I can figure out that my account was compromised I have since done a full restore and not rejailbroken it. My windows 7 desktop comes up clean with every scan (MSE, Malware bytes, Hijack this.)
    My real question I guess is two fold, how can apple not be able to find the orders for these two $40 allowances when they still show up in iTunes under my account, in e-mails from apple, and in PayPal?
    Also, besides the slow, inefficient e-mail support I have been dealing with is there any other way to contact Apple in regards to this?
    I'm waiting to hear from PayPal as to their ruling before I possibly approach my bank, (I have my checking linked to my PayPal for bills; I know I'm an idiot.)
    Thanks for any help you can provide,
    -gitgat
    tl;dr: iTunes account has $80 of allowances I didn't authorize; Apple cannot even find the orders.

    You need to set up a new account with a previously unused email address in order for the none option to appear.  Use the instructions in this article to walk you through the process.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    B-rock

  • Where do you find the "order number"?

    My friend has a 12" ibook. There are 2 different kinds with his proc. speed. Where on the iBook do u find the "order number" such as "M9426LL/A"? I can find the model number but not the order number anywhere, even in the Sys profiler.
    We're using Mactracker to get details on the iBook but it doesnt list Model Numbers, only the "MxxxcLL/A" order number.
    Can someone shed light on this?
    A while youre at it whats the "machine ID" mean?

    cornelius wrote:
    MacTracker lists the Order Number and identifies the computer by processor speed. so for my Pismo it lists: M7630LL/A (400 MHz), M7633LL/A (500 MHz). Mine was originally 400 MHz so the order number is M7630LL/A. For the iBook G4 late 2004 it lists as follows: M9623LL/A (12.1-inch), M9627LL/A (14.1-inch Combo), M9628LL/A (14.1-inch SuperDrive). I don't know what these numbers are good for, but there you are.
    Crucial.com sometimes (but not always) identifies different models in their "Memory Configurator". It's usually when there might be confusion over different models with similar processor speeds. They don't use them to describe choices for the iBook line though. The following identifies my latest Mac (MB062LL/B).
    http://www.crucial.com/store/mpartspecs.aspx?mtbpoid=2709378FA5CA7304

  • How do I find the number of users returned by a cfldap query?

    How do I find the number of users returned by a cfldap query?
    I'm not allowed to do something like:
    <cfif ArrayLen(results.rows) gt 1>
    I then get an error:
    faultCode:Server.Processing faultString:'Unable to invoke CFC - Object of type class coldfusion.tagext.net.LdapResultTable cannot be used as an array' faultDetail:''
    Many thanks for any light you can shed

       Cheers again Ian for your many helps,
    it now won't let me do
    <cfqueryparam value="#results.USNCreated#" cfsqltype="cf_sql_varchar">
    I get the message:
    faultCode:Server.Processing faultString:'Unable to invoke CFC - Error Executing Database Query.' faultDetail:'[Macromedia][SQLServer JDBC Driver][SQLServer]The name "results.USNCreated" is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted.'

  • Where do i find the 'order number' when installing the Adobe Creative Suite 6?

    I cannot find any 'order number' what so ever. All i have is the 'product code' which is printed on the yellow booklet that came with the software. I have tried entering this code into the 'order number' box and there are too many characters for it to fit in the box. Hense i got an email off Apple saying it didnt work. However they said that this 'product code' was the right code and the one i should be using, so why doesnt it work?? I have found a set of instructions online explaining how to install this software and it said to get the 'order number' i need to go into my 'order history' i did this...and apparently i have no history of buying anything, when clearly that is wrong seeing as i bought the software package along with my macbook on monday 11th march 2013 (3 days ago). I have phoned the Apple Store in Birmingham and the guy i spoke to talked me through installing the software on a trial basis, using the disc that came with the package. He said once it had installed, it would give me the option to make the trial into the real version and would provide me with a code in order to do so. This did not happen. I am nearly tearing my hair out. Someone help me please? I am a student and need the 'serial number' (i think thats what its called) in order to prove i have a legitimate copy of the software. But before i get the serial number i need to sort out this 'order number' so i can send off my application and prove i am a student. I also want to be able to use the software as soon as possible as i study Graphic Design and that is the whole reason i bought it.

    http://helpx.adobe.com/x-productkb/global/find-serial-number.html

  • How to find the Transport request for table entry

    Hi ,
    There was certain entry made in the SAP std table and which got transported to subsequent system. I want to find the Transport Request Number which was containign that table entry and which gor transported.
    Please suggest how can I find that transport number.
    Thanks
    Saurabh

    Hi,
    Yes we can get , Basis team will help.
    B'coz i had same requirement my basis got the TR for me.
    Take their help.
    He said u can like this.
    SE11 - > Table Display - > Table Entry in Menu Bar - > Transport Entries.
    Rhea.

  • How  to find the definintion for a particular implementation

    hi
    ihave the implementation name so i put this in se19
    and after enter it asks for definition which has to be created in se18
    if we have some predefined definitons  already for that implementation
    how to find the particular definiton that is to be used

    Put that implementation name in the enhancement name option of SE18 and press display. I hope by implementation you dont mean the Z Include.
    If it is Z include then look for where use list of that and pick the Enhancement name from there.
    Regards,
    Amit

  • In which transaction can i find the Order acknowledgement field?

    Hi All,
    In which transaction Can i get the Order acknowledgement field ? i tried in VL10B and VL10D but i could not get it.
    And also tell me what is the field (order acknowledgement) and in which table can i find it?
    Thanks in Advance.
    Pallavi

    EKES-ERDAT
    Tcode - ME92F

  • How to determine the order of plugin menu entries displayed in Automate menu?

    I found in Plug-in Resource Guide.pdf:
    int16 PIPriorityProperty 0x70727479L
    ('prty')
    Plug-in load order. Also used to control
    the order in which items with the same
    name show up in menus.
    Lower numbers (including negative
    ones) load first. If NULL, the default is
    zero.
    Now I have some plugins, but I saw that under the same Category, the menu items are showed by Lexicographic Order (A:up Z:down), but not by their Priority Properties. Also, each category is arranged by Lexicographic Order of suite name. It means, If I change the plugin names to other language, the order will be different, that's inconvenient for the users. What could I do to get a fixed order? Any idea will be appreciated.

    Yes it is, but I think that is strange if someone would add 2 items with identical names, the user will be confused. Is there some other ways to determine the position of each menu item?
    It seems the photoshop loads plugins suite by suite. If I have 2 suite named "A" and "Z", then all plugins of "A" are loaded by priority, then plugins of "B" be loaded. Can I change the loading order, other than modify the suitename?

  • Find the user executing a particular workbook

    Hi all,
    how to know the users ,executing a particular query / workbook?
    my client is asking to provide the list of users.
    can you please tell me ASAP.
    Thanks

    you can check these tables
    RSZCOMPDIR for Queries
    RSRWBINDEX List of binary large objects (Excel workbooks)
    RSRWBINDEXT Titles of binary objects (Excel workbooks)
    RSRWBSTORE Storage for binary large objects (Excel workbooks)
    RSRWBTEMPLATE Assignment of Excel workbooks as personal templates
    RSRWORKBOOK 'Where-used list' for reports in workbooks
    in alternative you have to install and populate BI Statistics business content
    hope it helps

Maybe you are looking for

  • Looking for exchange calendar sync groupcal *****

    Looking for exchange calendar sync system to replace sucky groupcal. I've had nothing but problems with it. I get duplicate calendars, duplicate calendar entries, and the daemon stops updating from the then the support folks are threatening to cut of

  • Help in using multiple select tag

    Hi all, I'm trying to make a jsp application that as follows: 1- A multiple select control appears with a number of items in it 2- Another multiple select is empty 3- When you choose and item from the first select control and press a button the item

  • When is Apple going to fix the problem with slow Time Machine backups with Mavericks?

    I have been with Apple tech support and they got my Time Machine working by doing a spotlight re-indexing and a safe boot.  This worked for about three days and I am back to very slow backups.  It is impossible for Time Machine to back up every hour

  • Dreamweaver MX shuts down when trying to connect to FTP

    Whenever I try to connect, the popup of it trying to connect shows up but then it shuts down my dreamweaver. I had already ran a test and the connection settings are correct but I don't know what the problem with it is. Anyone have any ideas? Thanks

  • Credit not appearing in account

    I haved topped up my credit with 9,98 but that amount is not appearing in my account information. Can you help me to sort this out?  Thanks