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 |
How can u find column name from a table which have max value in a row.( not max value)
What is the difference between a subquery and a join?
How do I truncate a sql log file?
Why trigger is used in sql?
What is the current version of postgresql?
What is a CTE (Common Table Expression), and how is it different from a subquery?
I have one table and column is c1 pk, c2 not null,c3 not null and 200 row in it and i add c4 column and value, how can is possible
Explain what is a view?
IN A TABLE HAVE ONE COLUMN PRIMARY KEY..IT WILL NOT ALLOWS NULL VALUES AND DUPLICATE VALUES..INSTEAD OF PRIMARY KEY WHY CANT WE USE UNIQUE AND NOT NULL.THESE TWO ALSO DOESNT ACCEPT NULL VALUES IN NOT NULL AND UNIQUE DOESNT ACCEPT DUPLICATE VALUES? SO WHAT IS THE DIFEERENCE BETWEEN(UNIQUE,NOT NULL) AND PRIMARY KEY??????
Is join same as left join?
what is the difference between inner and outer join? Explain with example. : Sql dba
using cursors salesman get bonus as 10% of their salary , managers get 20% , analalist get 30%. generae a report showing the employee name, salary , bonus.
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)