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 case function?
What version is sql?
What operating systems are supported by oracle sql developer?
Can we insert data into view?
how to include comments in sql statements? : Sql dba
What is assignment operator in pl sql?
Why is theta join required?
Which function is used to return remainder in a division operator in sql?
What is asqueryable?
What is sql character function?
What plvcmt and plvrb does in pl/sql?
What is #table in sql?
What are the qualities of 2nf?
What is structural independence and why is it important?
What is the purpose of the partition table?