Write a query to extract first 5 characters of a name in the column Stud_Name?



Write a query to extract first 5 characters of a name in the column Stud_Name?..

Answer / shubham

select substr(Stud_Name,1,5) from Table;

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More DB2 Interview Questions

If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?

0 Answers  


cobol-db2 runjcl please?

2 Answers   DELL,


max number of columns in a db2 table?

6 Answers  


how to take the back up of the DB2 table.

7 Answers  


Explain db2.

0 Answers  






What is null in db2?

0 Answers  


What are the 2 sqlcodes that are returned?

0 Answers  


How do you leave the cursor open after issuing a COMMIT? (for DB2 2.3 or above only)

2 Answers  


Give some example of statistics collected during RUNSTATS?

1 Answers  


What is meant by union and union all?

0 Answers  


What is a trigger in the db2 database?

0 Answers  


what is the use of commit ? and what is the syntax?

2 Answers   Deloitte,


Categories