how will i display the duplicate record's from a table...
i don't want to eliminate ...i want to display the duplicate
record...for example in my table i have 10 record's like
record no(1,2,3,4,2,9,6,1) in this ...so i want to receive
duplicates...
Answer / raja_kb
SELECT <Column Name1> FROM Table
GROUP BY <Column Name1> HAVING COUNT(*)>1;
| Is This Answer Correct ? | 7 Yes | 1 No |
How do you simulate the EXPLAIN of an embedded SQL statement in SPUFI/QMF? Give an example with a host variable in WHERE clause)
What is syscat in db2?
Explain what are the various isolation levels possible?
Explain about mirror activator disk mirroring?
What is an intent lock?
how to take the back up of the DB2 table.
What is nvl in db2?
How do I add a column to a table in db2?
How can the duplicate values be eliminated from db2 select?
Explain packages.
what are the frequent DB2 abends did you encounter in your programs ?? What are different SQL abends ??
For unmatched rows returned from an outer join, the column values in the other table are set to null e.g If A OUTER JOIN B returns some unmatched rows from A, the corresponding column values in B will be set to null. What can be done so that a null value is not displayed for these columns?