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

Answer Posted / ankit

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which isolation level provides maximum concurrency?

660


Cursors can be declared in both working-storage & procedure division, agreed. But is there any difference? If could you please suggest what is the difference

744


What is a db2 collection?

603


What is the use of db2 optimizer?

606


What is a cursor in programming?

592






What is the cobol picture clause of the db2 data types date, time, timestamp?

611


What do you mean by between and in? Is between inclusive of specified range values?

664


Can there be more than one cursor open for any program?

657


before altering a table is it necessary to lock ? if lock what is it ? how to do ? ifi want to lock a table what is that command ?

1710


What is db2 plan table?

617


How do I copy a table in db2?

571


Which isolation level provides highest data integrity?

593


How do we specify index to include or not during bind process.

1674


What is cursor with hold option in db2?

612


What is the maximum number of columns in a db2 table?

721