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

Are dml statements autocommit?

548


What is output spooling in sql*plus?

544


What are the types of functions in sql?

558


What are different joins used in sql?

548


Name some usages of database trigger?

556






Is a foreign key always unique?

526


What is the difference between a subquery and a join?

523


What does the sign mean in sql?

501


What is materialized view in sql?

457


how to decrement dates by 1 in mysql? : Sql dba

578


What is embedded sql what are its advantages?

500


Is sql a microsoft product?

491


what is data control language? : Sql dba

582


What are the string functions in sql?

523


What is the difference between clustered and non-clustered indexes?

599