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
Can we use views in stored procedure?
How to sort the rows in sql.
What are the types of join in sql?
What is a mutating table and a constraining table?
what is the syntax for using sql_variant_property? : Transact sql
what is the maximum length of a table name, database name, and fieldname in mysql? : Sql dba
Why do you partition data?
Which are the different character-manipulation functions in sql?
Can we rollback after truncate?
What company owns postgresql?
Is sql free?
What is indexing in sql and its types?
Explain select statements in sql?
How do I create a sql script?
What are all the different normalization?