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 is string data type in sql?

724


What is pragma in sql?

816


What is clustered index sql?

698


Explain character-manipulation functions?

835


What is data control language (dcl)?

790






How does postgresql compare to oracle/db2/ms sql server/informix?

772


What is out parameter used for eventhough return statement can also be used in pl/sql?

800


What is the cause of mutating table error and how can we solve it?

782


Can we group by two columns in sql?

727


What is sql injection vulnerability?

667


What is the mutating table and constraining table?

738


What is sql profiling in oracle?

737


What is graph sql?

719


What is a pl/sql block?

759


what are the system privileges that are required by a schema owner (user) to create a trigger on a table?

809