write a query that returns first characters of each word in
Oracel/Sql pl sql

Answer Posted / rajesh venati

For SQL:-

SELECT SUBSTR(ENAME,1,1) FROM EMP;
--------------------------------------------------------------
For PL-SQL:-

DECLARE
CURSOR ECUR IS SELECT SUBSTR(ENAME,1,1) FROM EMP;
BEGIN
FOR V_ECUR IN ECUR LOOP
DBMS_OUTPUT.PUT_LINE(V_ECUR.ENAME);
END LOOP;
END;

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different sql data types?

513


Why do we create stored procedures & functions in pl/sql and how are they different?

500


What is sap sql?

532


what are the non-standard sql commands supported by 'mysql'? : Sql dba

569


How do I run a script in sql developer?

489






What is a recursive join sql?

595


How to start oracle sql developer?

558


What is dynamic sql in pl sql?

491


How many clustered indexes can you have?

529


How to fetch values from testtable1 that are not in testtable2 without using not keyword?

750


How does cross join work?

502


What is numeric function sql?

540


Why is sql better than hql?

504


What is recursive stored procedure?

598


What are the two types of exceptions in pl/sql?

542