Solved

remove data from SQL table - SQL 2008 R2

Posted on 2011-09-25
2
318 Views
Last Modified: 2012-05-12
A user has added approx 5000 incorrect entries into a DB. I would like to remove them.
Lets assume there are 2 columns in this table-
Serial number and Reference number.

Lets assume the incorrect serial numbers are all between 10000 and 15000.
How do I remove them?

I am not an SQL expert, so would appreciate if you can paste the query I need to run.  
0
Comment
Question by:Mayogroup
2 Comments
 
LVL 15

Accepted Solution

by:
Eyal earned 250 total points
ID: 36597273
delete from tablename where serial >= 10000 and serial <=15000
0
 
LVL 9

Assisted Solution

by:mimran18
mimran18 earned 250 total points
ID: 36597330
Delete from tablename where [serial Number] between 10000 and 15000
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now