Calculate Total Revenue from All Orders in SQL
OrderDetails Table:

SELECT SUM(Quantity * UnitPrice) AS TotalRevenueTotalRevenue.● FROM OrderDetails
Specifies that the data is retrieved from the OrderDetails table, which contains quantity and price information for each order.
SQL Query:
select * from orderdetails;
select sum(Quantity * UnitPrice) as TotalRevenue
from orderdetails;
Output:

