in column y record
abc.v
abc.s
xyz.j
abc.h
i wan only abc columns
how to retrieve thi records
Answers were Sorted based on User's Feedback
Answer / madhu t
select Y from <table> where substr(y,1,3) = 'abc'
we can achieve this by using substring function in sql.
SUBSTR(column-name,starting-position,length)
Is This Answer Correct ? | 12 Yes | 0 No |
What is the reason behind not using select * in embedded sql programs?
What is dclgen (declaration generator)?
Is it possible to precompile if db2 goes down?
How does the processing of a correlated subquery differ from a non correlated subquery?
How do I import data from excel to db2?
Q4. How will you get the count of record without using COUNT verb in query?
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 db2 command?
What is explain in db2?
what is the difference between declaring the cursor in WS section and Procedure division?
what's the equivalent Cobol Data type for Decimal(x,y) in DB2? what does the current SQLID register contain?
3 Answers Cap Gemini, Tech Mahindra,
Can we use select query in a loop to fetch multiple rows in a COBOL PROGRAM? If so, what is the advantage of cursor?