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 |
What is a clustered index?
For Read Stability locks are not applicable for phantoms, What is Phantoms?
I use CS and update a page. Will the lock be released after I am done with that page?
Why use RUNSTAT Utility?
What are the disadvantages of PAGE level lock?
Explain the function done by data manager?
SET is the ANSI standard for variable assignment, SELECT is not. SET can only assign one variable at a time, SELECT can make multiple assignments at once. If assigning from a query, SET can only assign a scalar value. If the query returns multiple values/rows then SET will raise an error. SELECT will assign one of the values to the variable and hide the fact that multiple values were returned (so you'd likely never know why something was going wrong elsewhere - have fun troubleshooting that one) When assigning from a query if there is no value returned then SET will assign NULL, where SELECT will not make the assignment at all (so the variable will not be changed from it's previous value) As far as speed differences - there are no direct differences between SET and SELECT. However SELECT's ability to make multiple assignments in one shot does give it a slight speed advantage over SET.
what are extents?
What is the maximum number of tables that can be stored on a Partitioned Table Space ?
Usually, which is more important for DB2 system performance - CPU processing or I/O access?
DB2 can implement a join in three ways using a merge join, a nested join or a hybrid join. Explain the differences?
What is a NULL value? What are the pros and cons of using NULLS?