PL/SQL (MOSC)

MOSC Banner

DELETE in oracle

edited May 4, 2016 3:23PM in PL/SQL (MOSC) 10 commentsAnswered

I have a table with id as unique

Select * from xx where name ='yy';

I got 2 records with id 1 and id 2

So I want to delete the id 1 record.

So when ever I run the query the record should delete the oldest of the ones.

For name zz If I have 3 records with id 3,4,5 . It has to keep only 3 record.

Thanks in advanxe

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center