I have a table name Table1 which contain columns Cust_no,
car_model, country, salesamt. The records are 101, Fiat,
India, 12345
2nd record is 102, Tata, USA, 98743 3rd record is 101,
indica, India, 65342 4th record is 103, Toyota, UK, 64522
5th record is 103, Maruti, USA, 98632 and so on.....

Now my question is write sql query which will give me
detail about the sum of sales amount in perticular country

Answer Posted / raghu

select country,sum(salesamt) from table1 where country = ind;

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of dclgen in db2?

588


Which isolation level provides maximum concurrency?

664


What is the syntax for FETCH in DB2 ?

672


What is the use of db2?

586


What is load utility in db2?

665






What is a db2 collection?

603


How to find the maximum value in a column in the db2 database?

606


What is the clustering index in the db2 database?

582


What is the difference between db2 and oracle?

673


What is catalog database in db2?

642


Explain what are the various isolation levels possible?

608


Cursors can be declared in both working-storage & procedure division, agreed. But is there any difference? If could you please suggest what is the difference

747


What are the bind parameters ibm db2?

622


What is performance tuning db2?

616


What is db2 and what is the use of db2 optimizer?

648