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


Please Help Members By Posting Answers For Below Questions

Explain what is table in a database?

1009


What is sql basics?

993


What is dbo in sql?

921


Which is faster joins or subqueries?

931


Can %notfound return null after a fetch?

1005


How does one use sql*loader to load images, sound clips and documents? : aql loader

1119


What are the differences between implicit and explicit cursors?

1004


What are the 3 modes of parameter?

1103


How to avoid using cursors? What to use instead of cursor and in what cases to do so?

1128


what is the difference between delete and truncate statement in sql? : Sql dba

1130


Which is better stored procedure or query?

922


How to display the current date in sql?

1011


How do you define a foreign key?

941


What are the types pl/sql code blocks?

1069


what are tables and fields? : Sql dba

991