can u tell me this sql querry

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • center34
    New Member
    • Jan 2009
    • 4

    can u tell me this sql querry

    hello can anybody help me

    if there is a table named emp and there are 100 rows in this table and we like to delete 30 rows from the bottom .can any body help me with this SQL querry
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    try to use MINUS and rowid for the purpose.

    Comment

    • center34
      New Member
      • Jan 2009
      • 4

      #3
      thanks but

      can u please help me with this querry further,

      Comment

      • center34
        New Member
        • Jan 2009
        • 4

        #4
        this is the combination which I do get

        delete from emp
        where rowid not in ( select rowid from emp minus select rowid from emp where rownum between 70 and100);

        Comment

        • center34
          New Member
          • Jan 2009
          • 4

          #5
          thanks anyways

          thanks anyways for this help

          Comment

          Working...