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 is subquery? : Sql dba
Is id a reserved word in sql?
Give the order of sql select?
Define the select into statement.
Can I call a procedure inside a function?
what is the difference between delete and truncate statement in sql? : Sql dba
What is the maximum rows in csv?
What is a sql*loader control file?
Which sql statement is used to return only different values?
What are different types of indexes?
What is a table?
Explain how can you save or place your msg in a table?
What normalization means?
What is a sql statement?
Is sql port 1433 encrypted?