How is the SUBSTR keyword used in sql?



How is the SUBSTR keyword used in sql?..

Answer / s

Select * from emp
where SUBSTR(empname,4,2) = 'EN'

4 is the starting position and returns 2 characters after
that.

Is This Answer Correct ?    8 Yes 5 No

Post New Answer

More DB2 Interview Questions

pls explain the precompilation process of cobol-db2 pgm

3 Answers   HCL, IBM,


can any one expalin check point with an example?

1 Answers  


What is the clustering index in the db2 database?

1 Answers  


What is ACQUIRE/RELEASE in BIND?

3 Answers   Cognizant,


What is rebind in db2?

1 Answers  


What is sqlca’s maximum length?

1 Answers  


What does sqlcabc has?

1 Answers  


Explain an outer join?

1 Answers  


What is innodb buffer pool?

1 Answers  


What r the comman abends in db2, jcl and cobol???????

1 Answers   Mphasis,


What error I will get if my select query gives multiple row while executing a Cobol-DB2 program.How can I solve it without using a cursor.

4 Answers   Cap Gemini, Verizon,


What are PACKAGES ?

3 Answers  


Categories