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 fetch common records from two tables?
Explain the types of joins in sql?
Does mysql support pl sql?
How many databases can sql express handle?
what is 'mysqld'? : Sql dba
What is compound trigger?
What packages(if any) has oracle provided for use by developers?
how many sql ddl commands are supported by 'mysql'? : Sql dba
How do I view stored procedures?
Can we use two order by clause in query?
What is pl sql quora?
What is sql and its types?
How many types of index are there?
How to make a copy values from one column to another in sql?
Is there any restriction on the use of union in embedded sql?