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

Explain what are the various isolation levels possible?

0 Answers  


when does the SQL statement gets executed when you use cursor in the application programming ?

3 Answers   IBM,


Write a query to retrive partial string.

2 Answers  


What is the latest version of ibm db2?

0 Answers  


How to retrieve rows from a db2 table in embedded sql?

0 Answers  


What is the use of reorg in db2?

0 Answers  


Is db2 a mainframe?

0 Answers  


Explain in brief how does db2 determine what lock-size to use?

0 Answers  


What is database alias db2?

0 Answers  


What is the role of data manager in the db2 database?

0 Answers  


Is db2 a programming language?

0 Answers  


What is precompiler in db2?

0 Answers  


Categories