hi pls i need urgent support to complete my sql assignment i need queries for northwind database
Write a script to output a unique list of customers across customers and suppliers tables. Display
Customername, Contactname and City. Sort your outcome by Customername Desc.
Write a script to output Total, Average, Min and Max Freight by ShipCountry, order by Maximum freight
desc.
For each product, display the Total sales amount (including discount), order by the highest sales
amount.
i would be glad if i get help
ifefasinaatgmaildotcom
SELECT SUM(Freight) FROM table_name;
SELECT AVG(Freight) FROM ShipCountry;
SELECT MIN(Freight) FROM ShipCountry;
SELECT MAX(Freight) FROM ShipCountry;
ORDER BY MAX Freight
hi pls i need support to answer a few northwind sql queries
Write a script to output a unique list of customers across customers and suppliers tables. Display
Customername, Contactname and City. Sort your outcome by Customername Desc.
SELECT DISTINCT Customers
FROM Customers,Suppliers
ORDER BY CustomerName,ContactName,City
SORT CustomerName DESC
Write a script to output Total, Average, Min and Max Freight by ShipCountry, order by Maximum freight
desc.
SELECT SUM(Freight) FROM table_name;
SELECT AVG(Freight) FROM ShipCountry;
SELECT MIN(Freight) FROM ShipCountry;
SELECT MAX(Freight) FROM ShipCountry;
ORDER BY MAX Freight DESC.
For each product, display the Total sales amount (including discount), order by the highest sales
amount.
SELECT productid, SUM(UnitPrice * (1 - Discount) * Quantity)
FROM [Order Details]
ORDER BY Sales DESC