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
How many types of page locks can be held in db2?
What is rebind in db2?
How do you simulate the explain of an embedded sql statement in spufi/qmf?
How can deadlocks be resolved?
What is the use of value function?
Explain package in db2 and its advantages?
Why do we bind in db2?
Outputs of explain are with matchcols = 0. What does this signify?
What are iseries servers?
What is the use of dclgen in db2?
Can we delete records from view?
How do you pull up a query which was previously saved in qmf?
Which isolation level provides maximum concurrency?
What is an instance database?
How do I add a column in db2?