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

How to rename a table in DB2 ?

0 Answers   MCN Solutions,


What is rct?

0 Answers  


What is check constraint in db2?

0 Answers  


How do you insert a record with a nullable column?

2 Answers  


Define db2.

0 Answers  






can we drop column from a table

7 Answers   INDUS,


What is a root page?

1 Answers  


What are the Isolation levels possible ?

5 Answers  


what is cursor stability?

2 Answers   IBM,


How does coalesce work?

0 Answers  


How to define the data items to receive the fetch items for the SQL?

2 Answers  


What is a synonym ?

2 Answers  


Categories