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

Explain dml and ddl?

543


how to drop an existing table in mysql? : Sql dba

553


Is like operator in sql case sensitive?

504


How do I find duplicates in the same column?

529


Write the alter statement to enable all the triggers on the t.students table.

661






What are the built in functions of sql?

554


How long it takes to learn pl sql?

528


what is 'mysqlshow'? : Sql dba

578


What is the difference between a procedure and a function?

488


what are the differences between char and nchar? : Sql dba

590


What is pivot table in sql?

519


How do I save a sql query?

541


How you improve the performance of sql*loader? : aql loader

571


what is the difference between a having clause and a where clause? : Sql dba

515


How can you maintain the integrity of your database on instances where deleting an element in a table result in the deletion of the element(s) within another table?

661