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 / sarath
select length(phoneno)-length(replace(phoneno,','))+1 as TOTALCOUNT from <tablename>
For few friends who sent count(*) I wanna say something that
Its a SINGLE (FIELD VALUE)STRING CONTAINING MULTIPLE PHONENOs
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
how can we transpose a table using sql (changing rows to column or vice-versa) ? : Sql dba
What is input buffer in sql*plus?
what is a database transaction? : Sql dba
What is linq to sql?
What is the most important ddl statements in sql are?
Does sql support programming?
Can we use having without group by in sql?
What are the types of queries in sql?
What are the benefits of stored procedures?
Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?
Difference between global and parameter variables?
Explain architecture of sql server notification services?
What are the operators in sql?
what is 'trigger' in sql? : Sql dba
What is the meaning of disabling a trigger?