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 are iseries servers?
What happens in bind step in a db2 program?
What are the uses of db2 optimizer?
Are view updateable?
Explain various types of locks in db2?
How to connect to db2 database from windows command line?
What is the syntax for FETCH in DB2 ?
Explain the contention situations caused by locks?
What is scrollable cursor in db2?
How can tablespace be moved to another dasd volume that is allocated for that tablespace?
What is cobol db2?
Why select is not preferred in embedded sql programs?
What is db2 look?
What is iseries database?
Why cursor is used in db2?