how to get duplicate records from tables?write qurey for this?
Answers were Sorted based on User's Feedback
Answer / anshuman
Select column_name1,column_name2
from table_T
group by column_name1 having count(*)>1
it will give all the duplicates value of column_name1
| Is This Answer Correct ? | 28 Yes | 7 No |
Answer / mahesh babu
select column_name,count(*) from table_name group by
column_name having count>1.
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / 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 |
Answer / pandu
To get the duplicate records in a table use the query
Select distinct(deptno) from emp;
reply any one to me am i correct.
| Is This Answer Correct ? | 2 Yes | 26 No |
What is dbrm? What it contains? When it will be created?
What is a buffer in memory?
Name some fields from SQLCA
What is query for your birthday date should be in hours,minute and seconds format?
Explain about cursor stability?
Define buffer pool.
What value the host varible will contain , if null indicator value is -2 ? Will it contain the truncated value or nothing will move ?
how to get duplicate records from tables?write qurey for this?
What is the specific need of Plan and..where are the tables in DB2 are physically saved
What is referential integrity?
What is IMAGECOPY ?
What is DB2 (IBM Database 2)?