Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Can we connect to postgresql using sql developer?

1009


How does a trigger work?

1075


Why do we use partitions in sql?

1051


What is an index? What are the types of indexes? How many clustered indexes can be created on a table?

1075


What is ttitle and btitle?

1065


What is the use of %rowtype?

1041


What is the meaning of disabling a trigger?

1182


what are date and time data types in mysql? : Sql dba

971


What is the usage of distinct keyword?

1067


Explain aggregate functions are available there in sql?

1008


What are primary key and foreign key and how they work?

978


Why we use pl sql?

962


Where is sql database stored?

983


Is delete faster than truncate?

1002


Can we create table inside stored procedure?

956