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 |
what is SMP/E? and what are the major steps of it? thanks...
What is a bind card?
Request to database but database is not available so what is was abend is raised?
What is reorg and runstats in db2?
Say CUST Table contains records like: CUSTNO CUSTNAME CUSTLOC 100 ABC SSS 200 XYZ 300 PQR 400 MNO WWW 500 CVV ------------- ------------- Now write a query to retrieve all records with CUSTLOC no data.
What is lock escalation?
Can SQL statements/queries be included in a copybook?
wht displays the number of times a query modified ?
Is it possible to precompile if db2 goes down?
How to fetch the last row from the table in SQL (db2)?
How do you do the EXPLAIN of a dynamic SQL statement?
Can we use select * statement in cobol program without giving field names ???