Results 1 to 4 of 4

Thread: Display n-1 rows from a table

  1. #1
    Junior Member
    Join Date
    Oct 2006
    Answers
    3

    Display n-1 rows from a table

    How query and to display n-1 rows from a table.

    Kindly give me query and also the method

    dbtester


  2. #2
    Contributing Member
    Join Date
    Jun 2006
    Answers
    95

    Re: Display n-1 rows from a table

    Quote Originally Posted by dbtester View Post
    How query and to display n-1 rows from a table.

    Kindly give me query and also the method

    dbtester
    Could you explain what exactly n-1 rows...


  3. #3
    Expert Member
    Join Date
    Sep 2006
    Answers
    130

    Re: Display n-1 rows from a table

    Quote Originally Posted by dbtester View Post
    How query and to display n-1 rows from a table.

    Kindly give me query and also the method

    dbtester
    Need clarification reg ur question.
    Do u want to give the value 'n' in the where clause & retrieve n-1 rows?


  4. #4
    Junior Member
    Join Date
    Feb 2008
    Answers
    3

    Re: Display n-1 rows from a table

    my Query for this is as follows,

    select * from dept
    where rownum<=(select count(*)-1 from dept)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact