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 is record data type?
How many tables can a sql database have?
Can a view be mutating? If yes, then how?
What is error ora-01000: maximum open cursors exceeded
where are cookies actually stored on the hard disk? : Sql dba
Name some usages of database trigger?
What is user defined functions?
If a cursor is open, how can we find in a pl/sql block?
What are field types?
what are numeric data types? : Sql dba
Why is pl sql needed?
How do you add a column to a table?
What is Histogram?
Is a view faster than a stored procedure?
Can we rollback truncate?