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 has stored procedures in sql?
what is an alias command? : Sql dba
How can we debug in PL/SQL?
what are the different type of normalization? : Sql dba
What is field delimiter?
What is the usage of the distinct keyword?
What is cte sql?
Can you upgrade sql express to full sql?
List the various privileges that a user can grant to another user?
Can a table have no primary key?
What are field types?
Explain the structure of pl/sql in brief.
How many tables can a sql database have?
How does sql store data?
Explain the purpose of %type and %rowtype data types with the example?