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 is blu acceleration in db2?

0 Answers  


how do you resolve -818 error in db2. where we have to see time stamp token. i said by seeing in load module and plan .is it correct or not. give clear explination for how to see time stamp token

2 Answers   IBM, TRD,


Can we use select * statement in cobol program without giving field names ???

3 Answers   Zensar,


What is index in db2?

1 Answers  


Write a query to retrive partial string.

2 Answers  


what are bind concepts in db2 cobol?

0 Answers  


Can we insert update delete in view?

0 Answers  


Highlight all the advantages that are attached to a package.

0 Answers  


what is the difference between where clause and having clause

2 Answers   IBM,


How does DB2 use multiple table indexes?

1 Answers  


What is the difference between IN subselects and EXISTS subselect?

1 Answers   HCL, PreVator, TCS,


How do I copy a table in db2?

0 Answers  


Categories