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 different types of sql commands?
How to check if a column is nullable before setting to nullable?
Explain what is an index?
How do I view a view in sql?
How can you create an empty table from an existing table?
What is pls integer?
What is the sql case statement?
what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba
What is secondary key?
Explain the advantages and disadvantages of stored procedure?
explain the options of myisamchk to improve the performance of a table. : Sql dba
Why do we need databases?
What is procedure explain with program?
What is the difference between sql and mysql?
What are hotfixes and patches?