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
What is the source code of a program?
Can a trigger call a stored procedure?
How does cross join work in sql?
What is the starting oracle error number? What is meant by forward declaration in functions?
What is the difference between sql, mysql and sql server?
how would you enter characters as hex numbers? : Sql dba
What are different types of queries in sql?
When to use inner join and left join?
How do you sort in sql?
what are the 'mysql' command line options? : Sql dba
what are the differences between binary and varbinary? : Sql dba
What is sql entity?
How many functions are there in sql?
What is union?
Lookups are a key component in sql server integration services (ssis). Explain its purpose?