Could you please let me no the query for below

I have table name xyx under this there is column name called employee name which starts from 100th column ends 120th column,now i want to replace only column from 101 to 104 which contains ABCS to replace with PQRS for all records which comes beetween 101 to 104 ..how to write query for this..



Could you please let me no the query for below I have table name xyx under this there is column n..

Answer / devika

update XYZ
set empname(2,4) = 'PQRS'
where substr(empname(2,4))='ABCS'

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More DB2 Interview Questions

What is the syntax of SELECT statement when embedded in a COBOL program?

2 Answers  


What is meant by index cardinality?

2 Answers  


In a single table,How to retrieve a employee-id of an employee who works in more than one department?

15 Answers   Cap Gemini,


Explain in brief how does db2 determine what lock-size to use?

0 Answers  


Suppose we are doing transaction in a table and abend happened in between. Suppose i have completed the transaction upto X rows and I want to start the transaction again where the abend happened. I don't want to do the transaction from the first record. Then what i have to do.

9 Answers   Cap Gemini,






What is the difference between Where and Having Clause

7 Answers   IBM, iFlex,


Compare a subselect to a join?

1 Answers  


What are column-name qualifiers used?

1 Answers  


How do I create a view in db2?

0 Answers  


What is the maximum length of sqlca?

0 Answers  


What is a Database Request Module(DBRM)?

4 Answers  


What is temporal table in db2?

0 Answers  


Categories