Pls help me in finding highest salary of employee.

can anybody give me...
the general query...for finding out nth highest salary of the employee in a particular department.....
for example, if i want to find out 2nd highest salary or some 5th highest salary of the employee.....
i want query with a littlebit explanation also...

i
cannot do the sumation of those value then the
negative value that being re-enter become 0. how can
i make the value to become another positive value?Are you doing the `sumation' during the data entry (loop)? If so, make sure you only include valid value in the count (i.e. positive integers).

Similar Messages

  • Pls help me to finde mozila for my mobile sony ericsson vivaz u5i

    pls help me to finde mozila for my mobile sony ericsson vivaz u5i

    tnx so so match for anwer man i lock this for 2 monts loool omg bay bay

  • Query to find Highest Salary

    Hi,
    What is the SQL query to find the 1st highest salary.
    2nd Highest salary in the emp table.
    likewise nth highest salary employee records.
    Can anyone please give me the queries for the above scenarios.
    Thanks

    There are many nethods, some examples
    Using group function:
    SQL> l
      1  SELECT ename,sal FROM emp e1
      2  WHERE &val >= (SELECT COUNT(*) FROM emp e2
      3*               WHERE e1.sal<=e2.sal)
    SQL> /
    Enter value for val: 1
    old   2: WHERE &val >= (SELECT COUNT(*) FROM emp e2
    new   2: WHERE 1 >= (SELECT COUNT(*) FROM emp e2
    ENAME                                      SAL
    KING                                      5000Using in-line view and rownum:
    SQL> ed
    Wrote file afiedt.buf
      1  SELECT * FROM (SELECT ename,sal FROM emp ORDER BY SAL desc)
      2* WHERE rownum<2
    SQL> /
    ENAME                                      SAL
    KING                                      5000Using analytical function ROW_NUMBER
    SQL> ed
    Wrote file afiedt.buf
      1  SELECT * FROM (SELECT ename,sal,ROW_NUMBER() OVER(ORDER BY sal desc) rn FROM emp )
      2* WHERE rn=1
    SQL> /
    ENAME                                      SAL         RN
    KING                                      5000          1Also you can use several other analytical functions as mentioned by Kartick. Search and read on the internet to find what is most suitable way and why!.
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:2853107469873
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:12759079666984

  • Pls help me on finding info abt classes and methods....

    hi.. I'm new to java .. but i know the very basics of it.. so that i could write a couple of simple programs.. I've been working wit .NET all these days and MSDN library helps me a gr8 deal.. it gives explanation for every class and methods of the class, even explaining the parameters passed into the methods.. I'm currently workin wit J2ME for developing MIDlets... As i know the basics programming isnt very bad.. but where can i find the explanation for the classes used in micro edition or the methods that belong to the classes...
    Is there any facility like MSDN library for java where i can find the whole information...?????
    Pls help with....
    Thanks for ur patience...

    * Goto [http://java.sun.com/j2me/docs/|http://java.sun.com/j2me/docs/]
    * Click on link "MIDP 2.0 Specification (JSR 118)"
    * Under Specification, Click on Download
    * Hit Accept License Agreement
    * Download ZIP file (not the pdf version)
    * Unzip file and view files
    * Enter folder "midpng-javadoc-final"
    * Open Overview.html
    * Find link "JavaDoc API Documentation".
    [Ref.|http://www.java-tips.org/java-me-tips/midp/where-is-j2me-api-javadoc.html]

  • Pls help me to find the smartform name for RMA REQUEST(RMA)

    Hi Experts,
    Pls Tell me how too find the smartform name for RMA REQUEST(RMA)
    Pls help
    Thanks and regards
    Jaya

    WHat is RMA REQUEST form please ellobrate your query
    the smrat form tcode is SMARTFORMS.....you can try

  • To find 2nd highest salary in employee table

    Hi,
    I want to know how to calculate the 2nd highest salaried employee details.
    rownum "=" sign cannot be used i suppose and
    with and without using orderby clause.
    both the methods needed.
    cheers,

    With order by
    select * from
       ( select q.*, rownum as rn from
          ( select * from emp order by sal desc ) q
    where rn=2
    /With analytics:
    select empno , sal
    from ( select empno , sal
                  , dense_rank () over (order by sal desc) as sal_rank
           from emp )
    where sal_rank = 2Notice that DENSE_RANK() might give us a different result compared to RANK() and both give us a different result from the first example.
    Cheers, APC

  • TS4006 Pls help me to find anyway to get my iphone back from the bandid before jailbreak !

    On yesterday,  my iphone's been stolen from my bag on the bus (I live in Thailand).
    I have already in-store application find my iphone but i turn off location button. Pls guide me to available location button via icould or any way to find my iphone. Now, the bandid has already turn off the iphone. I afraid if they jailbreak or crack the iphone. i can not follow it.
    Thanks for helping.

    Thank you for you guideline, I have already change my password.
    I'm very sad.  For my iphone, I will paid via installments untill next year. ( ..><...)
    Let me know, If the bandid has already jailbreak the iphone. I can follow my iphone or not? How the way?

  • Pls help - can't find contacts easily on N95 8GB

    Hi there. Just got my new N95 8GB -2 & when i add a new contact i can find it by scrolling all the way down but not by one letter. eg I have entered a contact just as M but when i go contacts> M , i get a list of everything with M starting at A!! eg Alan M,Bob m & so on -How do i set up to get it (1st letter) as 1st choice as with all my other phones? Have tried First name or surname but makes no difference......... Can anyone help?

    Not giving excuses for Nokia.
    But the way the search function seems to work is that when you type M it brings up all the contacts that contain M in it, in alphabetical order.
    But if you have many many names then as you type it starts filtering them.
    This is how Video Center and Music Player works as well. So it's a bit of backwards logic you think but really I think there's a reason.
    Say you have many contacts saved. Now you know that this person first or last name starts with ME, but you don't know if it's the last or first name or that ME may be part of the name but not at the beginning then as you type ME it will bring all the contacts that have ME either at the beginning the middle or wherever.
    So there's some logic to it but maybe not a lot...
    640K Should be enough for everybody
    El_Loco Nokia Video Blog

  • Pls help me to find sound driver

    Hello.
    This is jack.I ve formatted my laptop (the product name seemsA50-122) and could nor find the sound drivers of it.
    Also i could not find the SA50-122 under the name of   'satellite' models in toshiba.com
    I request help from you asap..Thank you
    Best Regards
    Solved!
    Go to Solution.

    That would be the Signa sound driver for the European Satellite A50 running Windows XP.
    The download file is sound-20080604143748.zip.
    -Jerry

  • Pls help me to find admin tool for latest bi linux version

    Hello,
    Oracle Business Intelligence, v. 11.1.1.5.0
    I installed the latest version of OBIEE of linux version 64 bit on the server.
    Installation went fine.
    Now the only problem is finding Admin tool.
    Could u pls tell me where its sitting.
    I know i Windows it Admintool.exe
    Thanks

    Hi user,
    Firstly you wont have admin tool for linux environment....you need to install the client on windows local machine and access the BI server of linux by setting up a connection.
    So you need to download 64-bit or 32-bit windows one to install http://www.oracle.com/technetwork/middleware/bi-enterprise-edition/downloads/biee-111150-393613.html
    Read this document :- http://download.oracle.com/docs/cd/E21764_01/bi.1111/e10539/c5_postinstall.htm#CEGEHEJF
    hope answered your question.
    Cheers,
    KK

  • Pls. help me to find my stolen IPAD 2

    My IPAD 2 (64gb, 3g) has been stolen (28.07.2012) and ask you to help me. Thanks in advance

    What To Do If Your iDevice or Computer Is Lost Or Stolen
    If your Mac, iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should do in advance - before you lose it or it's stolen - and some things to do after the fact. Here are some suggestions:
    Reporting a lost or stolen Apple product
    AT&T, Sprint, and Verizon can block stolen phones/tablets
    What-To-Do-When-Iphone-Is-Stolen
    Lost or Stolen iPhone? Here’s What to do.
    6 Ways to Track and Recover Your Lost/Stolen iPhone
    Find My iPhone
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
    Find My iPhone
    Setup your iDevice on MobileMe
    OS X Lion- About Find My Mac
    How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Third-party solutions for computers:
    VUWER 1.5.4
    Sneaky ******* 0.2.0
    Undercover 4.7
    LoJack for Laptops Premium Mac
    STEM 2.1
    MacPhoneHome 3.5

  • Pls help me to find smartform name

    Hi experts,,,
    Please tell me the smart form name.
    I have been given reprtmname as 'Order Confirmation'.
    Please help me .
    I will reward with full points.
    Thanks in advance

    Hi Jaya,
    You have to use application V1 - SALES in transaction NACE
    You can click on Output Types and then choose the output type that you have used for Order Confirmation and then click on processing routines and here you can see the form or smartform attached against this ouptout type.
    Hope this solves your query.
    Reward suitably if helpful.
    Regards
    Ravi

  • What should i do i buy a second hand iphone 4s but its lock to the previous owner in find my iphone pls help me i cant use my iphone for a year already

    pls. help me about find my iphone lock. because i buy a second hand iphone 4s but still lock to the previous owner when i restore factory settings still searching for the previous owner of this phone still now i cant use this phone

    Hello jimmy ii
    The only option is to contact that person to have them remove Activation Lock from the iPhone. They can do it online and do not have to come to you. Check out the article below for more information.
    Find My iPhone Activation Lock: Removing a device from a previous owner’s account
    http://support.apple.com/kb/TS4515
    Regards,
    -Norm G.

  • Who can understand this problem..im confused pls help me!!!

    first i have to say i dont no much about troubleshooting or software side of computers.so pls help me to find me an answer for my problem. i cant get any search results ,when i typed something and cliked search it comes with an error message.but when i click on any news or any thing on yahoo page ,it comes up with out any errors(my home page is yahoo )and also i can acssess to my email also.this problem began 4 , 5 months back.funny thing some times i can search any thing without errors.but in next time it goes totaly wrong with error masseges. i cant understand this problem.it makes me sick.pls anyone can help me?another thing im using IE and FIRE FOX .today i found another thing.when i type something on ask search bar it came up with search results but when i typed same thing on google search bar it came up with error message..i'm really confused with this problem.pls pls help me :(

    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
    * [[Searches are redirected to another site]]

  • Pls help - error in display_search.jsp

    Hi everyone, can u pls help me to find out the above error. The error is coming from the display_search.jsp program and the search_title is use to get the title. Thanking u in advance.
    Error: 500
    Location: /LSIB/display_search.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile C:\Program Files\Apache Group\jakarta-tomcat\work\DEFAULT\LSIB\display_search_10.java:103: Invalid declaration.
         String stitle = rs.getString("title");
         ^
    C:\Program Files\Apache Group\jakarta-tomcat\work\DEFAULT\LSIB\display_search_10.java:113: Undefined variable: stitle
    out.print( stitle );
    ^
    2 errors
         at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
         at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
         at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
         at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
         at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
         at org.apache.tomcat.core.ContextManager.service(Unknown Source)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:484)
    display_search.jsp
    <html>
    <head>
    <title>display search</title>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*"%>
    <%@ page import="java.util.*"%>
    </head>
    <body background="CLOTH003.GIF">
    <font face="comic sans ms" size="5">
    <%
    // define database parameters
    String host="localhost:8080";
    String db="lsib";
    String conn;
    Statement createStatement = null;
    ResultSet rs = null;
    String user = "kushal";
    String pass = "";
    String dis_search = request.getParameter("ssearch");
    Class.forName("com.mysql.jdbc.Driver");
    // create connection string
    conn = "jdbc:mysql:" + host + "/" + db + "?user=" + user + "&password=" + pass;
    conn = "jdbc:mysql://localhost/LSIB";
    // pass database parameters to JDBC driver
    Connection Conn = DriverManager.getConnection(conn);
    // query statement
    Statement SQLStatement = Conn.createStatement();
    // generate query
    String sql= "select title, author, publisher, edition from book";
    // get result
    rs= SQLStatement.executeQuery(sql);
    if (rs != null)
         String stitle = rs.getString("title");
         String sauthor = rs.getString("author");
         String spublisher = rs.getString("publisher");
         String sedition = rs.getString("edition");
    %>
         <form method="post" action="request.jsp">
         <center><table border = "0" width="400">
         <tr>
         <td><b>title :</b></td><td><input name="searchtitle" type="text" width=30" value="<%= stitle %>"></td>
         </tr><br>
         <tr>
         <td><b>author :</b></td><td><input name="searchauthor" type= "text" width ="20" value="<%= sauthor %>"></td>      
         </tr><br>
         <tr>
         <td><b>publisher :</b></td><td><input name="searchpublisher" type="text" width = "20" value="<%= spublisher%>"></td> </tr><br>
         <tr>
         <td><b>edition :</b></td><td><input name="searchedition" type="text" width = "4" value="<%= sedition %>"></td> </tr><br>
         <tr>
         <td colspan = "2">
              <center>
                   <input type="submit" value=" request ">
              </center>
         </td>
         </tr>
    <%
    // close connection
    rs.close();
    SQLStatement.close();
    Conn.close();
    %>
    </table>
    </center>
    </form>
    </body>
    </html>
    search_title
    <html>
    <head>
    <title>search title</title>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*"%>
    <%@ page import="java.util.*"%>
    </head>
    <body background="CLOTH003.GIF">
    <font face="comic sans ms" size="5">
    <%
    // define database parameters
    String host="localhost:8080";
    String db="lsib";
    String conn;
    Statement createStatement = null;
    ResultSet rs = null;
    String user = "kushal";
    String pass = "";
    Class.forName("com.mysql.jdbc.Driver");
    // create connection string
    conn = "jdbc:mysql:" + host + "/" + db + "?user=" + user + "&password=" + pass;
    conn = "jdbc:mysql://localhost/LSIB";
    // pass database parameters to JDBC driver
    Connection Conn = DriverManager.getConnection(conn);
    // query statement
    Statement SQLStatement = Conn.createStatement();
    // generate query
    String sql= "select title, author, publisher, edition from book where title like" +dis_search;
    // get result
    rs= SQLStatement.executeQuery(sql);
    if (rs != null)
    %>
         <form method="post" action="display_search.jsp">
         <center><table border = "0" width="400">
         <tr>
         <td><b>please enter title</b></td><td><input name="ssearch" type="text" width=20" </td>
         </tr><br>
         <tr>
         <td colspan = "2">
              <center>
                   <input type="submit" value="search">
              </center>
         </td>
         </tr>
    <%
    else
    out.println("no resources found");
    // close connection
    rs.close();
    SQLStatement.close();
    Conn.close();
    %>
    </table>
    </center>
    </form>
    </body>
    </html>

    Try this one
    display_search.jsp
    <html>
    <head>
    <title>display search</title>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*"%>
    <%@ page import="java.util.*"%>
    </head>
    <body background="CLOTH003.GIF">
    <font face="comic sans ms" size="5">
    <%
    // define database parameters
    String host="localhost:8080";
    String db="lsib";
    String stitle="";
    String sauthor="" ;
    String spublisher="" ;
    String sedition="" ;
    String conn;
    Statement createStatement = null;
    ResultSet rs = null;
    String user = "kushal";
    String pass = "";
    String dis_search = request.getParameter("ssearch");
    Class.forName("com.mysql.jdbc.Driver");
    // create connection string
    conn = "jdbc:mysql:" + host + "/" + db + "?user=" + user + "&password=" + pass;
    conn = "jdbc:mysql://localhost/LSIB";
    // pass database parameters to JDBC driver
    Connection Conn = DriverManager.getConnection(conn);
    // query statement
    Statement SQLStatement = Conn.createStatement();
    // generate query
    String sql= "select title, author, publisher, edition from book";
    // get result
    rs= SQLStatement.executeQuery(sql);
    if (rs != null)
    stitle = rs.getString("title");
    sauthor = rs.getString("author");
    spublisher = rs.getString("publisher");
    sedition = rs.getString("edition");
    %>
    <form method="post" action="request.jsp">
    <center><table border = "0" width="400">
    <tr>
    <td><b>title :</b></td><td><input name="searchtitle" type="text" width=30" value="<%= stitle %>"></td>
    </tr><br>
    <tr>
    <td><b>author :</b></td><td><input name="searchauthor" type= "text" width ="20" value="<%= sauthor %>"></td>
    </tr><br>
    <tr>
    <td><b>publisher :</b></td><td><input name="searchpublisher" type="text" width = "20" value="<%= spublisher%>"></td> </tr><br>
    <tr>
    <td><b>edition :</b></td><td><input name="searchedition" type="text" width = "4" value="<%= sedition %>"></td> </tr><br>
    <tr>
    <td colspan = "2">
    <center>
    <input type="submit" value=" request ">
    </center>
    </td>
    </tr>
    <%
    rs.close();
    SQLStatement.close();
    Conn.close();
    %>
    </table>
    </center>
    </form>
    </body>
    </html>

Maybe you are looking for

  • Acrobat distiller won't open file from word to create pdf

    I can choose acrobat from word and print pdf -- but acrobat pro 9 gives me an error message when I try to select a file from word to create a pdf. I can print acrobat from word but not from acrobat The error message just says can't open, check if you

  • Burned DVD-DVD player says "File Unsupported" ..newbie needs help

    I have not had my Mac long and after taking my daughter's dance recital off my Flip onto my Mac, I burned it to a DVD to play in the DVD player and it said "File unsupported". What am I doing wrong?? Thank you for reading.

  • Unity 7 with cucm 8

    Hi all experts. Is unity 7 with domino supported with cucm 8 ? I checked the following link and it seemed confusing http://tools.cisco.com/ITDIT/vtgsca/VTGServlet Kindly confirm

  • How to modify the Registered Schema

    Hi Gurus, I have registered an XMLschema (A) based on an xsd and a table with column having datatype XMLTYPE is created based on the schema. Now this xsd is inherited by many xsds and based on those xsd's schemas are created and tables with columns h

  • How to Post Data to Web Page

    I want to maintain a list on one of the pages on my website. How can that be done in iWeb? a spreadsheet, a text file? Would I ftp it, open iWeb every time and edit and repost? Any suggestions would be appreciated Thanks