i want count no of values in a column i.e
enam eempno phoneno
x 1 (98765,09887,096561,87964579,156678,678900876)
that means if i select phone no from table i want to get
total count of phone numbers i.e 6
Answer Posted / kavitha nedigunta
select count(*) from(
select trim(regexp_substr(initcap(phoneno),'[^,]+',1,level)) as phoneno
from testphone
connect by level <= length(regexp_replace(phoneno,'[^,]'))+1
)a
it will work in oracle 10g on words.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What are different joins used in sql?
Is sql better than excel?
What are the types of sql commands?
What does joining a thread mean?
How do you create a db file?
What is scalar data type in pl sql?
What is break?
What are views in sql?
What is nosql example?
how to shut down the server with 'mysqladmin'? : Sql dba
What are pl sql data types?
How to run pl/sql statements in sql*plus?
What is cursor and why it is required?
what is the maximum length of a table name, database name, and fieldname in mysql? : Sql dba
what is the difference between char and varchar data types? : Sql dba