Go4Oracle

Member Login






Powered by CodeRevolts
You are here  :Home arrow Forum
FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
duplicate row delete in one command (1 viewing) (1) Guest
Forum for Novice Oracle Users
Go to bottom Post Reply Favoured: 0
TOPIC: duplicate row delete in one command
#10
dubey (User)
Fresh Boarder
Posts: 2
graph
User Offline Click here to see the profile of this user
duplicate row delete in one command 4 Months ago Karma: -1  
sir i think this question's ans is

delete from table name where rowid not in (select min(rowid) from table name group by all collumn);
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#11
amal (Moderator)
Moderator
Posts: 2
graph
User Offline Click here to see the profile of this user
Re:duplicate row delete in one command 4 Months ago Karma: 0  
Your answer is right (logic) you can practice it with an actual delete statement with some dummy data generated in the table as duplicated records....and see if that works in case you find any error do let me know..

DO u Think GROUP BY CLAUSE IN THIS delete Statement IS Necessary
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/09/13 14:21 By amal.
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Visitors Counter

mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterToday44
mod_vvisit_counterYesterday104
mod_vvisit_counterThis week148
mod_vvisit_counterThis month511
mod_vvisit_counterAll22665

Our Recommendations

Get Firefox browser!
Go to Google!Get a free mail account!Get The Gimp!Get Openoffice!Get Videolan!