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

I am getting a error multiple row fetched while executing a Cobol-DB2 program.How can I solve it without using a cursor.

8 Answers  


How can we retrieve the total number of records in RPG & CLLE?

0 Answers  


i have cobol+ db2 program but it contains n number of subprograms for this how many dbrm members i need to mention in bind process

2 Answers  


How to restart a DB2 program?

0 Answers   Cognizant,


What information is contained in a SYSCOPY entry?

2 Answers  


Define check constraint.

0 Answers  


How to create db2 table in mainframe?

0 Answers  


Describe what a storage group(STOGROUP) is?

2 Answers  


how can you access index

4 Answers   IBM, Tech Mahindra,


What type of database is db2?

0 Answers  


What is meant by concurrency?

1 Answers  


Do we have any optinon to search part of integer in DB2 as we have for character Like,SUBSTR optins?

1 Answers  


Categories