How to find the count of letter "L" in HELLO

Answer Posted / mahesh

select regexp_count('hello','l') from dual;

or

SELECT LENGTH('HELLO')-LENGTH(REPLACE('HELLO','L',NULL)) FROM DUAL;

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I turn a list into a table?

599


What is rownum and rowid?

656


Is it possible to link two groups inside a cross products after the cross products group has been created?

685


What are the different types of constraints?

637


What is pragma in sql?

705






what is the difference between char_length and length? : Sql dba

668


What is difference between table and view?

612


How to fix oracle error ora-00942: table or view does not exist

657


What is the difference between clustered and non-clustered index in sql?

620


Inline the values in PL/SQL, what does it mean.?

736


Explain what is a view?

705


What is the usage of the distinct keyword?

794


What is a recursive stored procedure?

713


what is single byte over head in oracle..?

1970


Explain autonomous transaction.

716