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

Answer Posted / muhammad faisal

/*
using PL SQL code*/

declare
CURSOR emp_sub IS SELECT substr(last_name,1,1)
from employees;
name employees.last_name%type;
begin
open emp_sub;
loop
fetch emp_sub into name;
/*select last_name into name from employees;*/
dbms_output.put_line(name);
exit when emp_sub%notfound;
end loop;
close emp_sub;
end;
/

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is inner join in sql?

771


What is the sql case statement?

746


Which join is default?

708


What is date functions?

727


Why is stored procedure faster than query?

698






What is secondary key?

669


What are the topics in pl sql?

698


What is procedure explain with program?

718


How do you update f as m and m as f from the below table testtable?

1461


What is pl sql and why it is used for?

796


What are the main features of cursor?

820


What version is sql?

728


Which is better varchar or nvarchar?

730


what is a control file ? : Sql dba

759


What are types of exception?

686