Write a query to retrive partial string.

Answers were Sorted based on User's Feedback



Write a query to retrive partial string...

Answer / rajesh_m13

substr('string',1,3) which gives str. correct me if i am wrong

Is This Answer Correct ?    8 Yes 0 No

Write a query to retrive partial string...

Answer / ignatius pradeep

A Sample Query:

SELECT SUBSTR(DESC_T,1,4)
FROM PRODUCT
WHERE PROD_I = 123456;

DESC_T is a column in the table PRODUCT

The first four characters of the DESC_T will be displayed.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More DB2 Interview Questions

How to check sequence on a table in db2?

0 Answers  


What is declare cursor?

0 Answers  


Name the various locking levels available?

0 Answers  


What is the significance of DB2 free space and what parameters control it?

1 Answers  


What is the purpose of the SDSNLOAD dataset in the STEPLIB while running DB2 programs?

2 Answers  






How do you simulate the explain of an embedded sql statement in spufi/qmf?

0 Answers  


what types of copies can be made with the COPY Utility ?

1 Answers  


In a single table,How to retrieve a employee-id of an employee who works in more than one department?

15 Answers   Cap Gemini,


How do I connect my db2 database to ibm?

0 Answers  


how many partitions are possible in partitioned tablespace? dont say 1-64. a)240 b)256 c)512 d)none

8 Answers   Amdocs, HeadStrong,


Request to database but database is not available so what is was abend is raised?

2 Answers   UST,


How can you find out which query is taking lot of time to execute in cobol-db2 program ?

1 Answers   Danske,


Categories