How will you delete a particular row from a Table?
Answers were Sorted based on User's Feedback
Answer / rakesh
delete from emp e1
where n = (select count(distinct rowid)
from emp e2
where e2.rowid <= e1.rowid)
Note:Here "n" means Nth row..
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / priya
delete from table where primarykey/uniquekey_columnname
= 'something';
I hope it will delete a desired particular row.
But if you want to delete a 100th row or something like
that answer will be different
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / dinesh kumar
delete from table_name where pk_col = value;
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / manoranjan sethy
Delete form TABLE_NAME where value=COLUMN_NAME;
| Is This Answer Correct ? | 0 Yes | 0 No |
Sorry guys this is not an answer to the asked question.
-- Just a small test --
<HTML>
<BODY>
<MARQUEE>TESTING THIS WEBSITE</MARQUEE>
<a href="http://www.allinterview.com/">All Interview website</a>
</BODY>
</HTML>
| Is This Answer Correct ? | 2 Yes | 5 No |
Answer / mohan
delete from emp where empno=&n;
Note:
1. Here &n means the empno which we have to delete from the table.
2. In general we will use primary key column in where clause.
| Is This Answer Correct ? | 1 Yes | 4 No |
In a PL/SQL block,which loop type should be used in a performance point of view & Why (as both loops can do the same task) 1) open - Fetch loop 2) for loop
What does desc stand for?
what is top in tsql? : Transact sql
How to run sql functions in pl/sql?
a. Can you delete data from a View. b. If Yes, can you delete it if there are multiple tables c. If No, can you delete if there is single source table which is joining.
How will you make performance better for application including front end and back
Mention what plvcmt and plvrb does in pl/sql?
What trigger means?
How can you create an empty table from an existing table?
Which sql statement is used to delete data from a database?
Does inner join remove duplicates?
What is the reports view in oracle sql developer?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)