Write a query to retrive partial string.

Answers were Sorted based on User's Feedback



Write a query to retrive partial string...

Answer / rajesh_m13

substr('string',1,3) which gives str. correct me if i am wrong

Is This Answer Correct ?    8 Yes 0 No

Write a query to retrive partial string...

Answer / ignatius pradeep

A Sample Query:

SELECT SUBSTR(DESC_T,1,4)
FROM PRODUCT
WHERE PROD_I = 123456;

DESC_T is a column in the table PRODUCT

The first four characters of the DESC_T will be displayed.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More DB2 Interview Questions

In cobol+DB2program if the code of cobol program has changed than i have to do precompilation once again?

6 Answers   TCS,


what is the Foreign key? explain?

2 Answers  


What is sqlca’s maximum length?

0 Answers  


What types of tables are there in the db2 database?

0 Answers  


can i code union in cobol-db2 pgm ?

4 Answers   Patni,






Is db2 a programming language?

0 Answers  


pls explain the precompilation process of cobol-db2 pgm

3 Answers   HCL, IBM,


Can any one tell me about Restart logic in DB2.

2 Answers  


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

0 Answers  


Why PS file called Physical seqential file?How to sore data in sequential file and ESDS file? What is the use of DBRM,PLAN,package and Collection.

1 Answers  


what is difference between Plan and Package

1 Answers   Syntel,


What does DML stand for and what are some examples of it?

3 Answers   IBM,


Categories