Write a query to retrive partial string.
Answers were Sorted based on User's Feedback
Answer / rajesh_m13
substr('string',1,3) which gives str. correct me if i am wrong
| Is This Answer Correct ? | 8 Yes | 0 No |
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 |
What is a root page?
Can i insert bulk records into a db2 table using qmf of spufi only............!!!
How do you prepare a COBOL + DB2 program from coading till execution ?
Can we declare DB2 HOST variable in COBOL COPY book?
what is the Foreign key? explain?
What is a DB2 access path?
List some fields from sqlca?
Can we use select query in a loop to fetch multiple rows in a COBOL PROGRAM? If so, what is the advantage of cursor?
when we are tying to update a table having 100 rows. if the program abends when updating 51 row . how to start updating again from the 51 row .what was the logic
What is explain plan in db2?
Usually, which is more important for DB2 system performance - CPU processing or I/O access?
How can you quickly find out the number of rows updated after an update statement?