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?
Answers were Sorted based on User's Feedback
Answer / shivainduja
Select count(*), accnt_type from Account where accnt_type in
(FD,SAVING,RD) group by accnt_type;
Is This Answer Correct ? | 30 Yes | 6 No |
Answer / malthesh sagar
select count(acnt_type),acnt_type from a
group by acnt_type;
Is This Answer Correct ? | 10 Yes | 2 No |
Answer / ramesh
Select count(id), accnt_type from Account
group by accnt_type;
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
Answer / jithu
Select count(accnt_type), accnt_type from Account where
accnt_type in
(FD,SAVING,RD) group by accnt_type having count(accnt_type)>0;
Is This Answer Correct ? | 0 Yes | 2 No |
Answer / ambika
in FD,SAVING &RD..MOST PEOPLE..ARE JOINING BUT MORE PEOPLE
ARE JOINING SAVING BANK A/C ONLY
Is This Answer Correct ? | 0 Yes | 2 No |
What does “select count(*) from tab” result?
15 Answers IBM, Student, Wipro,
How can I pass the inner procedure value to outer procedure ?
What is meant by <> in sql?
Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?
What is a procedure in pl sql?
Inline the values in PL/SQL, what does it mean.?
What action do you have to perform before retrieving data from the next result set of a stored procedure ?
What is data control language?
How does sql*loader handles newline characters in a record? : aql loader
what is a cursor
What is rank () in sql?
What is cursor status?