How will you delete duplicate records from a table?
Answer Posted / mehdee
Hi. This is a database design problem, because if you
alowe duplicate rows then you must have at least a column
being like squence number.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
While unloading huge amount of data from table. Suddenly job failed some error. Imagine 1M data unloading, In that 90% data unloaded only 10% left, So if want to unload the rest 10% what needs to be done? Whether do i need to start from top or anything ?
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.
i want to maintain uniqueness on pdf without make lf??????????
Mention the way of highlighting as well as putting a cursor to use in a cobol program.
How does a cursor work?
Highlight all the advantages that are attached to a package.
What is the physical storage length of the data types: date, time, timestamp in the db2 database?
What is dpf in db2?
What is the physical storage length of timestamp data type?
Which components manage deadlocks in db2?
Which command is used to remove all rows from a table?
How is deadlock resolved?
List down the data types in the db2 database.
How to restart a DB2 program?
How do I import a csv file into db2?