Give SQL Query to find the number words in a sentence ?
ex: 'ram charan singh' then ans:3

Answers were Sorted based on User's Feedback



Give SQL Query to find the number words in a sentence ? ex: 'ram charan singh' then ans:3..

Answer / bhakti

select length(trim('ram charan singh')) - length (replace
(trim ( 'ram charan singh'),' ','')) +1 from dual

Is This Answer Correct ?    19 Yes 3 No

Give SQL Query to find the number words in a sentence ? ex: 'ram charan singh' then ans:3..

Answer / sanjaya

select regexp_count('RAM CHARAN SINGH','s')+1 from dual;

Is This Answer Correct ?    0 Yes 0 No

Give SQL Query to find the number words in a sentence ? ex: 'ram charan singh' then ans:3..

Answer / joel

select count('ram charan singh') dual;

Is This Answer Correct ?    2 Yes 22 No

Post New Answer

More Oracle General Interview Questions

what are the advantages of running a database in NO archive log mode?

1 Answers  


What is the difference between hot backup and cold backup in oracle?

0 Answers  


How view is different from a table?

0 Answers  


How do I use unicode codesets with the weblogic jdriver for oracle driver?

0 Answers  


What are the general rules on data consistency?

0 Answers  






What is the difference between "as" and "is" in an oracle stored procedure?

0 Answers  


Calculate difference between 2 date / times in oracle sql?

0 Answers  


How do I recompile a procedure in oracle?

0 Answers  


What is save point in oracle database?

0 Answers  


What is the order of defining local variables and sub procedures/functions?

0 Answers  


How to drop an existing view in oracle?

0 Answers  


Please explain the difference between outer join and inner join? With examples would be appreciable..!

6 Answers   IBM,


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)