How will you delete a particular row from a Table?

Answers were Sorted based on User's Feedback



How will you delete a particular row from a Table?..

Answer / suma

delete from rmployees where employee_id=101

Is This Answer Correct ?    20 Yes 3 No

How will you delete a particular row from a Table?..

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

How will you delete a particular row from a Table?..

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

How will you delete a particular row from a Table?..

Answer / dinesh kumar

delete from table_name where pk_col = value;

Is This Answer Correct ?    1 Yes 1 No

How will you delete a particular row from a Table?..

Answer / manoranjan sethy

Delete form TABLE_NAME where value=COLUMN_NAME;

Is This Answer Correct ?    0 Yes 0 No

How will you delete a particular row from a Table?..

Answer / chandra shekhar

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

How will you delete a particular row from a Table?..

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

Post New Answer

More SQL PLSQL Interview Questions

Like shown below i have 3 columns(Name,No,Address). The values in name column i want to modity. Requirement : Keep only once space between two words (Fname,Lname) in the Name column. For this what is the query? Please answer me. Advance Thanks. Name No Address Reference manoj kumar kumar raja vinzay kumar rajendra prasad gowri nath -- -- --

5 Answers  


What is sql performance tuning?

0 Answers  


Table A Table B 1 1 2 1 3 1. Union & union all --> A Union B , A Union all B 2. Minus , Intersect --> A minus B , B Minus A , A Intersect B 3. Joins A join B , A Left Join B A Right Join B , A full Join B 4. %Type - Uses & Benifit 5. Truncate & Delete 6. Pragma Autonomus Transaction 7. how to Perform DDL from function or procedure 8. Can we have DML inside Function 9. Rank & Dense Rank diffrence 10. Water Mark in Oracle 11. Index , Can we have index in all column of table if no then why ?

0 Answers  


How are functions and procedures called in PL/SQL?

0 Answers  


Are left and right joins the same?

0 Answers  






What is different between union and minus?

7 Answers   Accenture, TCS,


What is the difference between delete, truncate and drop command?

0 Answers  


What is the use of time stamp in select statement?

1 Answers   TCS,


I have a tablle like this. cust acc --------------- a 1 b 2|3 c 4|5|6 I Want below o/p: cust acc ----------- a 1 b 2 b 3 c 4 c 5 c 6 Please any one can you have any ideas share me. I have urgent requirement.

4 Answers   Cap Gemini, MTS,


Explain table and field in sql?

0 Answers  


What is difference between triggers and stored procedures. And advantages of SP over triggers ?

4 Answers   Microsoft, TCS,


Explain the purpose of %type and %rowtype data types?

0 Answers  


Categories