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

select count(column_name) from table_name;

if u want to count number of phone numbers then use below
from emp table

select count(phno) from emp;

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various levels of constraints?

859


What is anonymous block in sql?

832


Is keyword pl sql?

732


How do I order columns in sql?

706


What is materialized view in sql?

654


What are the types of functions in sql?

752


How to select all records from the table?

809


How do you take the union of two tables in sql?

738


what is rdbms? : Sql dba

762


What is spool?

792


Is sqlexception checked or unchecked?

726


What are the different types of constraints?

745


tell me about various levels of constraint. : Sql dba

766


What are reports usually used for?

767


explain the difference between myisam static and myisam dynamic. : Sql dba

709