Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 pls_integer in pl sql?

1091


what is the difference between char and varchar data types? : Sql dba

1076


what are the different functions in sorting an array? : Sql dba

1010


What is pl sql code?

1042


What is a table in a database?

1041


Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?

1008


what are enums used for in mysql? : Sql dba

1163


How does index help in query performance?

1022


Mention what plvcmt and plvrb does in pl/sql?

1130


What are tables and fields?

1027


Can a commit statement be executed as part of a trigger?

1044


How to find 3rd highest salary of an employee from the employee table in sql?

1075


what is row? : Sql dba

1219


How do I count rows in sql?

995


What is delimiter in pl sql?

1050