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 different types of database objects?

0 Answers  


What do you understand by database schema and what does it hold?

0 Answers  


What is a user account in oracle?

0 Answers  


How to enter a new row into a table interactively?

0 Answers  


how to get last monday of a month?

2 Answers   Multifonds,






Is it possible to enter only time value into a column of a table in sql?

2 Answers  


Display Odd/ Even number of records?

3 Answers  


Define the terms primary key foreign key and also the difference between primary and the unique key

2 Answers  


What is the function of Optimizer ?

1 Answers  


How a database is related to tablespaces?

0 Answers  


Can we create more than one constraint to column ?

6 Answers  


How to lock and unlock a user account in oracle?

0 Answers  


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)