Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7667649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:09:39+00:00 2026-05-31T15:09:39+00:00

I want to delete table rows from xyz table where row count should be

  • 0

I want to delete table rows from xyz table where row count should be greater than 10, but I don’t have any column that holds row position. I don’t want to add additional column such as Id. Here is my table structure:

name(as text)  subject(as text)  filename(as text)

and here is my query which deletes entire table

delete from questions where (select Count(*) from questions)  between  10 and 20

I am not getting what to write instead of (select Count(*) from questions)

any solutions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:09:41+00:00Added an answer on May 31, 2026 at 3:09 pm

    I think this would work:

    DELETE FROM table WHERE name NOT IN (SELECT TOP 10 name FROM table)
    

    This is assuming that name is unique.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to delete rows from a table that has a column more than
I want to delete about 90% of rows from a million+ row table. Anything
I want to have a delete user link in a normal Activerecord table, but
I want to delete set of the rows from a table. I can decide
I have to delete rows from guide_category that have no relation with guide table
I want to delete rows from a SQL Server 2000/2005 table variable based on
I want to transfer 50 rows from table1 to table 2, how should I
I am trying to delete a lot of rows from a table. I want
I need to delete from a table rows that have the same value on
I have this method which will remove all rows from a table but I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.