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
What is cursor explain with example?
How does index help in query performance?
how to present a past time in hours, minutes and seconds? : Sql dba
What are stored procedures used for?
Can I learn sql in a week?
Is sql a case sensitive language?
Explain the advantages and disadvantages of stored procedure?
What are field types?
What does where 1 1 mean in sql?
what are date and time intervals? : Sql dba
What is normalization in a database?
What is oracle sql developer?
Can we use rowid as primary key?
what is 'mysqladmin' in mysql? : Sql dba
Can two tables have same primary key?