How do you retrieve the first 5 characters of firstname column of db2 table emp?



How do you retrieve the first 5 characters of firstname column of db2 table emp?..

Answer / ankit

Select substr(firstname,1,5) as firtname from emp;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

How can you quickly find out the number of rows updated after an update statement?

1 Answers   CSI, CTS,


Hi, i would like to start a new carrier in DB2 DBA.Which and what all step should i have to take..?

0 Answers  


where will u check for sqlcode ?

2 Answers   TCS,


What is a cursor and what is its function?

2 Answers  


Return code 100 means?

6 Answers   Cap Gemini,


What is read-only cursor?

1 Answers  


What does the REORG Utility do?

2 Answers  


what is rebinding ?

1 Answers   IBM,


What is the use of reorg in db2?

0 Answers  


Suppose I have a program which uses a dynamic SQL and it has been performing well till now. Off late, I find that the performance has deteriorated. What happened?

1 Answers  


Suppose pgm A calling Pgm B .Pgm B has some Db2 program. at the time of compilation should plan and package will be created for both A and B or only B? What is the concept?

2 Answers  


What is the picture clause of null indicator variable?

0 Answers  


Categories