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

What is partition by in sql?

567


How run sql*plus commands that are stored in a local file?

511


What is materialized view. What are different methods of refresh?

775


What is procedure function?

531


What are the different set operators available in sql?

561






What is a left inner join?

529


What is example of database?

512


Advantages and disadvantages of stored procedure?

576


How do you use a while loop in pl sql?

532


What is auto increment in sql?

579


How to use transactions efficiently : transact sql

538


what are the differences between get and post methods in form submitting. Give the case where we can use get and we can use post methods? : Sql dba

663


How is pl sql different from sql?

536


Explain commit, rollback and savepoint.

598


How many scalar data types are supported in pl/sql?

518