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
What is the difference between local variables and global variables?
Explain what is an index?
What is pl sql in dbms?
Is pl sql different from sql?
Mention what does plvtab enables you to do when you showthe contents of pl/sql tables?
What is a table partition?
what are all the common sql function? : Sql dba
What are the features of pl sql?
Mention what is the function that is used to transfer a pl/sql table log to a database table?
What is the use of function in sql?
What are types of joins?
What are the types of records?
What is function and procedure?
How global cursor can be declare with dynamic trigger ?
Is sql developer case sensitive?