i have a table with fields(id,name,accnt_type)and in account
type are FD,SAVING,RD. Write a query to get How many number
of People are in each type of Account?

Answer Posted / shivainduja

Select count(*), accnt_type from Account where accnt_type in
(FD,SAVING,RD) group by accnt_type;

Is This Answer Correct ?    30 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of keys?

671


what is the difference between truncate and delete statement? : Transact sql

780


how can we know the count/number of elements of an array? : Sql dba

774


State few characteristics of pl/sql?

727


What are string functions in sql?

885






How do I save a stored procedure?

731


Can a composite key be null?

715


How to create a menu in sqlplus or pl/sql?

811


Is delete faster than truncate?

753


Is and as keyword in pl sql?

686


Can we have two clustered index on a table?

762


what is meant by urlencode and urldocode? : Sql dba

770


Can we create foreign key without primary key?

705


how can you see all indexes defined for a table? : Sql dba

716


What is an invalid partition table?

750