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

What's The Error Code For Unique Index Voilation?

0 Answers   IBM,


What is meant by a unit of recovery?

1 Answers  


I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl give the SQL query for this?

0 Answers  


What is the difference between drop table and delete table?

0 Answers  


What is the use of with ur in db2?

0 Answers  


How to resolve SQL Code -310. The db table feild is declared as Decimal(7,2).

2 Answers   IBM, Infosys,


what is the input to PLAN? what is the input to DBRM?

4 Answers  


What is EXPLAIN?

1 Answers  


What is a collection?

3 Answers  


What is bind and rebind in db2?

0 Answers  


How do I optimize a query in db2?

0 Answers  


What is the clustering index in the db2 database?

0 Answers  


Categories