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 we find the number of rows in a table using mysql? : Sql dba
What are the operators in sql?
What is the difference between sum and count in sql?
how can we repair a mysql table? : Sql dba
How to combine two stored procedures in sql?
who introduced sql?
What is cross join sql?
what is the command used to fetch first 5 characters of the string? : Sql dba
Explain unique key in sql.
What are the different ddl commands in sql?
What are the types of operators available in sql?
What is a database event trigger?
What are the properties of a transaction?
Is oracel sql developer written in java?
What are triggers and its types?