I have created 4 tables(Mumbai, Bangalore, Pune, Delhi
) with customer information
In all 4 tables, I have a bill amount table column in my table, I want to display the sum of bill Amounts of all tables from Highest to lowest.
I have used the following query, but I don’t know how to go ahead with it.
Create view view1 as:
Select sum(m.BillAmount),sum(p.BillAmount),sum(b.BillAmount),sum(c.BillAmount)
from Mumbai m,Chennai c, Pune p, Bangalore b
ORDER BY
Please can I get appropriate queries related to this?