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 / saurabh agarwal
SELECT COUNT(*) FROM ACCOUNT WHERE ID IN(SELECT ID FROM
ACCOUNT WHERE ID IN( SELECT ID FROM ACCOUNT WHERE
ACCNT_TYPE ='FD') AND WHERE ACCNT_TYPE ='SAVING') AND
ACCNT_TYPE='RD'
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
what are null values? : Sql dba
What is the use of function in sql?
What are all the ddl commands?
how many triggers are allowed in mysql table? : Sql dba
what is recursive stored procedure? : Sql dba
what is the command used to fetch first 5 characters of the string? : Sql dba
what is a constraint? Tell me about its various levels. : Sql dba
How much ram can sql express use?
Give the order of sql select?
How delete all data from all tables in sql?
What are tables and fields in the database?
What are the three pl sql block types?
what is a view? : Sql dba
Does view contain data?
Why is sql important?