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 / nitin vartak

select enam ,eempno , (len(phoneno) - len(replace
(phoneno,',',''))) + 1 from TableName

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Enlist the characteristics of pl/sql?

1353


What is inner join in sql?

667


What is sql keyword?

657


What are the parts of a basic sql query?

604


How do I trace sql profiler?

596






what is the difference between nested subquery and correlated subquery?

643


what is the syntax for using sql_variant_property? : Transact sql

627


What is the difference between null value, zero, and blank space?

649


What is attribute indicator in pl sql?

616


What is the difference between left join and right join?

581


What does cursor do in sql?

615


How to write html code in pl sql?

687


How do I partition a table in sql?

626


what is 'mysqlcheck'? : Sql dba

655


What do we need to check in database testing?

646