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 / ajit

select name,length(replace(phno, ','))
from phno;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are expressions?

757


How can triggers be used for the table auditing?

755


Name three sql operations that perform a sort.

789


Which is faster joins or subqueries?

717


How do you write an inner join query?

694






What is sql and how does it work?

739


what are the type of locks ? : Sql dba

721


How do I upgrade sql?

739


what are the differences among rownum, rank and dense_rank? : Sql dba

744


what is timestamp in mysql? : Sql dba

745


Why use triggers in sql?

706


what is the syntax for using sql_variant_property? : Transact sql

708


What are the types of join in sql?

718


What is sql rowcount?

728


How do I view an execution plan in sql?

711