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 maximum No of rows per page?
Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?
How do we specify index to include or not during bind process.
What is the difference between cursor stability and repeatable read isolation levels?
What is a db2 cursor?
What is the difference between using bind () and rebind () methods of naming class?
How to resolve deadlock issue
How do you pull up a query which was previously saved in qmf?
i want to maintain uniqueness on pdf without make lf??????????
What is a page in db2?
What is innodb buffer pool?
can we view the access paths created by dbrm ? how ? thx
What is a Foreign Key?
What are host variables in db2?
What is the use of value function?