How to delete the duplicate colums in a sql table ?

Answer Posted / sathyasheelanbe

delete from tablename where rowid not in(select max(rowid)
from tablename group by primary key columnname)

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between union and group?

622


Explain as a ba (business analyst) approaching a new piece of work, who would you interview and what questions would you ask?

550


What is the functional & architectural differences between business objects and web intelligence reports?

553


What is report template in b.o?

582


Explain is data mart?

588






If there are no indices defined on any of the columns in the above two tables, which columns would you index to speed up the left join query?

552


Then how to select the source by using webi or deski reports into crystal reports? i think main source is Businessview. where u import the datasource ?

1570


Can we create universe with no cache??

1956


Explain how to execute the plsql procedure from the report by clicking with mouse?

596


Can we configure two instances of CMS pointing to two different CMS system databases?

1484


Can any one say me how i can integrate 3 or more analytics like radio bottons,line chart,pie chart while designing a dash board in xcelsius and i am also facing problem to show one after another values in the same chat at a time..... Please help me out for this....

1487


Which versions are used in the bo dashboard work?

597


Explain what are the steps to be taken to schedule the report?

636


Can anybody tell me what are the tuning problems?

1587


What is Indexing? how did u implement indexing?

1812