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



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

Answer / s

DIGITS will convert INTEGER to character string

SUBSTR(DIGITS(PARTID),5,1) ='9'
This will extract the 5th character and checks to see if it
is 9.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More DB2 Interview Questions

My SQL is not performing well. Describe how will you fine tune it?

1 Answers   Accenture,


What happens to a cursor after a commit?

3 Answers  


a cursor normally gets closed once we provide a commit . If u try to close the same cursor with close cursor command later after providing the commit will there be any sql-error.

3 Answers  


How do you filter out the rows retrieved from a Db2 table ?

1 Answers  


What is commit in db2?

0 Answers  






what is sql abend code -801,-802?

2 Answers  


What is image copy in db2?

0 Answers  


wt is view ? wht r the restrictions for view ?

3 Answers   Verizon,


What are the full forms of spufi and dclgen and why are they used?

0 Answers  


When Can you be sure that a query will return only one row?

4 Answers   IBM,


How to check table size in db2 sap?

0 Answers  


What is bind package and plan in db2?

0 Answers  


Categories