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

why we create view.

5 Answers  


How does the processing of a correlated subquery differ from a non correlated subquery?

1 Answers  


What techniques are used to retrieve data from more than one table in a single SQL statement?

2 Answers  


What is db2 purescale?

0 Answers  


When reorg is used?

0 Answers  






What error I will get if my select query gives multiple row while executing a Cobol-DB2 program.How can I solve it without using a cursor.

4 Answers   Cap Gemini, Verizon,


What is the difference between using bind () and rebind () methods of naming class?

0 Answers  


What is a buffer pool?

2 Answers  


How many types of page locks can be held in db2?

0 Answers  


in db2, already 10 columns arie der, and i want to insert 11th column. what parameters u wil consider for insertion and how will u insert

1 Answers   TCS,


Define declaration generator (dclgen).

0 Answers  


What is cloudant database?

0 Answers  


Categories