how to Update table Sales_summary with max(sales) data from
table sales_dataTable 1. sales_data table Table 2.
Sales_summary
Region sales Region sales
N 500 N 0
N 800 W 0
N 600
W 899
W 458
W 900
I want the Sales_summary After Update like this
Region Sales
N 800
W 900
Answer Posted / keerthi
update Sales_summary
set Sales=(select max(Sales)from Sales_data where
Region=®ion) where Region=®ion;
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How can you view the errors encountered in a trigger?
what is sql? : Sql dba
Explain ddl statements in pl/sql?
Can we use ddl commands in pl sql?
Explain two easy sql optimizations.
What is difference between stored function and application function?
Explain what is table in a database?
What is a record in pl/sql?
What is the use of primary key?
What is pivot query?
What are the types of dbms?
how is myisam table stored? : Sql dba
What is sap sql anywhere?
What is rownum?
how to delete an existing column in a table? : Sql dba