Answers To 50 Northwind Practice Queries Using MySQL
Answers To 50 Northwind Practice Queries Using MySQL
USE northwind;
5. SELECT lower(CustomerID) AS ID
FROM northwind.customers;
7. SELECT CompanyName,ContactName
FROM northwind.customers
WHERE City = 'Buenos Aires';
15. SELECT *
FROM northwind.orders
WHERE Freight > 500;
OR
30. SELECT CONCAT( FirstName,' ', LastName ,' can be reached at ', 'x',Extension ) AS Contactinfo
FROM northwind.employees;
UPDATE northwind.shippers_dup
SET Email ='speedyexpress@gmail.com'
WHERE ShipperID = '1';
UPDATE northwind.shippers_dup
SET Email ='unitedpackage@gmail.com'
WHERE ShipperID = '2';
UPDATE northwind.shippers_dup
SET Email ='federalshipping@gmail.com'
WHERE ShipperID = '3';
50. SELECT CONCAT( ProductName,' ', "weighs/is" ," ", QuantityPerUnit, " ", "and cost ","$",ROUND(UnitPrice) ) AS
ProductInfo
FROM northwind.products;