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 / arunarevathi.s

hi seenu,
in this table have three coloumn thats are
book,version,numofbooks.
The query for u,
sql>select book,sum(numofbook)as count from book
group by book;


By,
aruna

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a natural join sql?

719


how to check myisam tables for errors? : Sql dba

910


Can a key be both primary and foreign?

731


What is the basic form of sql query?

685


What are the possible values that can be stored in a boolean data field?

733


What are the two virtual tables available at the time of database trigger execution?

893


what is a database transaction? : Sql dba

835


Explain the steps needed to create the scheduled job?

761


What is the advantage of nosql?

754


What are the advantages of pl sql?

847


What is clause?

807


what happens if you no create privilege in a database? : Sql dba

733


Can I learn sql in a week?

768


What is the difference between the repeatable read and serializable isolation levels? : Transact sql

756


What is package in pl sql?

745