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...

How to delete same emp id in sql query for exmaple in emp
table emp id, empname, emp address. for example emp id =5,
repeated in two times in rows same id how to delete same
empid please any one of the write query send in my id

Answer Posted / his highness yadav

ur question is not much clear

is it to delete duplicate rows or

to delete all the rows which is repeating , and the original

fr the first the query above will work fine

second option try this

delete from emp a, emp b where a.empno=b.empno

i think this will go ,, this will delete the all records which
is duplicating


cheers

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is pl sql used?

1026


Can unique keys be null?

949


How do I install sql?

1043


Can we write ddl statements in functions?

1182


what does the t-sql command ident_current does? : Transact sql

1045


Can we use two order by clause in query?

1015


Why stored procedure is better than query?

997


Can we use update in sql function?

1113


What are different sql data types?

1124


What are % type and % rowtype?

1081


What are local and global Indexes and where they are useful.

1493


Is primary key clustered or nonclustered?

1059


how to convert character strings to numeric values? : Sql dba

1162


What is union and union all keyword in sql and what are their differences?

1157


How to run sql*plus commands in sql developer?

1204