I have one table,in that table
(1)i have java1.1 version books are 2 and java1.5 version
books are 4.
(2).Net2.0 books are 3, .Net3.5 books are 2
(3)ABC1.6 books are 4, ABC2.0 books are 3.

Now i want output is like

Book Count

Java 6
.Net 5
ABC 7

For this i need sql query, please help me if anyone how to
get this result.

Thanks,
Seenu

Answer Posted / oraclecodec

There must be some column such as 'TECHNOLOGY' that should
distinguish java ,.net and ABC apart from their versions.
Then its easier to arrive at a solution

SELECT TECHNOLOGY,COUNT(*) FROM BOOK GROUP BY TECHNOLOGY;

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to create a new view in mysql? : Sql dba

685


What are literals in sql server?

736


What is sql mysql pl sql oracle?

784


What is a sql select statement?

763


What is the difference between joins?

731






What is an escape character in sql?

743


What are the different types of functions in sql?

759


Why does sql need a server?

760


How many developers work on postgresql?

734


What is implicit cursor in pl sql?

739


Difference between table function and pipelined function?

768


What is trigger and how to use it in sql?

723


What is the execution plan in sql?

758


What is union?

815


What is sql and db2?

728