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

select count(acnt_type),acnt_type from a
group by acnt_type;

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is partition by in sql?

784


what are the types of subquery? : Sql dba

768


what are the 'mysql' command line options? : Sql dba

744


How do temporal tables work?

694


How do I run a sql query in pgadmin 4?

718






Who developed sql?

758


Are dml statements autocommit?

756


differentiate between float and double. : Sql dba

763


What does cursor do in sql?

716


How do I count duplicates in sql?

756


What is duration in sql profiler trace?

774


What is the maximum number of triggers, you can apply on a single table?

736


How do sql databases work?

715


What is where clause in sql?

734


how do you know the version of your mysql server? : Sql dba

690