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
What are db2 tables?
How do you select a row using indexes in db2?
Explain about rct.
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.
How do I add a column in db2?
What is bind in db2?
What is view db2?
What is the role of the data page in the db2 database?
What is the function of logging in the db2 database?
Give the name of some fields form sqlca.
How do I add a column to a table in db2?
How to create db2 table in mainframe?
How to connect to db2 database from windows command line?
What is innodb buffer pool?
What is page size in db2?