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
What is the use of dclgen in db2?
How to compare data between two tables in db2?
What is db2 catalog database?
What is the use of db2 optimizer?
What is package in cobol db2?
What does db2 blu stand for?
Name the lockable units in DB2?
What is sqlca?
What is the role of schema in the db2 database?
What is a trigger in the db2 database?
What is a db2 cursor?
What is catalog database in db2?
What is the physical storage length of time data type?
What is the use of with ur in db2?
Explain correlated sub-queries.