Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

In my table having 100 Rec. How can I delete the 7th row??
(we don't know what is data inside the table)

Answer Posted / harsha

Use DELETE FROM TabName

The above command will delete all rows of the table with
out deleting the table.

Now if we want to delete 7th row and we don't know the
actual data in that row, then in that case we need to
create a new temporary result table, that contains only one
desired record which you want to delete.
Here are the steps.

1 Select only 7 row data.
2 Sort it in descending order(ORDER BY calue)
3 Select only first row
4 Now you have a result table with only 1 and desired record

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Outputs of explain are with matchcols = 0. What does this signify?

1112


What are host variables in db2?

1122


What is the use of predicate?

1087


Discuss about db2 bind?

1157


What is the difference between cursor and select statement?

1152


What is the difference between using bind () and rebind () methods of naming class?

1460


How to run db2 command in windows?

1245


What is the max length of sqlca?

1271


can we view the access paths created by dbrm ? how ? thx

7207


What is runstats db2?

1076


What is temporal table in db2?

1101


What is isolation level in db2?

1068


When do you specify the isolation level?

1073


What is plan in cobol db2?

1205


What is a plan and package in db2?

1153