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 do I add a column in db2?

0 Answers  


select 100 records from million records ?

2 Answers   Verizon,


What does an outer join do?

1 Answers   CTS,


What is a db2 package?

0 Answers  


Usually, which is more important for DB2 system performance - CPU processing or I/O access?

1 Answers  






Name some fields from SQLCA

1 Answers  


What is consistency token in db2?

0 Answers  


what is the role of the cursor in db2?

0 Answers  


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

0 Answers  


What is null indicator in db2?

0 Answers  


what is commit & rollback? When and where is used while compiling a cobol-db2 program?

2 Answers  


What are the contents of dclgen?

0 Answers  


Categories