Answer Posted / 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 View All Answers
what is diffrence b/w file-aid tool and file-aid utility???
What is the difference between cursor stability and repeatable read isolation levels?
What does reorg do in db2?
How many databases can be created inside an instance in db2 ?
When a COBOL-DB2 program in PRODUCTION is updating main tables and gone for long run, what have to do?
Hi, i would like to start a new carrier in DB2 DBA.Which and what all step should i have to take..?
SET is the ANSI standard for variable assignment, SELECT is not. SET can only assign one variable at a time, SELECT can make multiple assignments at once. If assigning from a query, SET can only assign a scalar value. If the query returns multiple values/rows then SET will raise an error. SELECT will assign one of the values to the variable and hide the fact that multiple values were returned (so you'd likely never know why something was going wrong elsewhere - have fun troubleshooting that one) When assigning from a query if there is no value returned then SET will assign NULL, where SELECT will not make the assignment at all (so the variable will not be changed from it's previous value) As far as speed differences - there are no direct differences between SET and SELECT. However SELECT's ability to make multiple assignments in one shot does give it a slight speed advantage over SET.
What are host variables in db2?
What kind of database is db2?
Mention the downsides of page level lock.
What is schema in db2?
What is ibm db2 connect?
What is load utility in db2?
What is runstats and reorg in db2?
If anyone has IBM Certification Dumps pls forward to me & also let me know what are the Certification Codes that are available in DB2