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

Which component is responsible for processing sql statements and selecting access paths?

0 Answers  


wt is view ? wht r the restrictions for view ?

3 Answers   Verizon,


What are foreign keys?

1 Answers  


What is null indicator in cobol db2?

0 Answers  


if suppose i am having an ACCOUNT table with 3 coloumns ACC. NO,ACC. NAME,ACC. AMOUNT . If a unique index is also defined on ACC.NO and ACC.NAME then write a query to retrieve account holders records who have more than 1 ACC.

8 Answers   Wipro,






how to resolve -811

2 Answers   IBM,


Plan is an executable form of sql statements,But what exactly resides inside a Plan. what are the details inside Plan.

2 Answers   IBM,


What are the uses of db2 optimizer?

0 Answers  


What is REORG? When is it used?

4 Answers  


How do I delete a table in database?

0 Answers  


If I have a view which is a join of two or more tables, can this view be updateable?

0 Answers  


What is the physical storage length of time data type?

0 Answers  


Categories