how to get duplicate records from tables?write qurey for this?

Answer Posted / naresh k

select * from table_name;
The above qurey get duplicate record also because the
database store records like multi-set..
if we want get distinct records then use following query.
select distinct(attribute_name) from table name

Is This Answer Correct ?    0 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is temporal table in db2?

797


What is bufferpool in db2?

805


How to find schema of a table in db2?

750


What is table space in db2?

779


What is copy pending and check pending in db2?

750


What is catalog database in db2?

859


What is ibm db2 connect?

744


My sql statement select avg(salary) from emp yields inaccurate results. Why?

851


Which component is responsible for db2 startup and shutdown?

809


What is reorg?

836


What does db2 plan contain?

754


What kind of database is db2?

773


What are union and union all?

727


Explain the function of data manager.

810


Suppose pgm A calling Pgm B .Pgm B has some Db2 program. at the time of compilation should plan and package will be created for both A and B or only B? What is the concept?

7414