63 D 634 D 5413 A 4 SQLTASKS2
63 D 634 D 5413 A 4 SQLTASKS2
SUBMITTED TO:
Sir Bilal Rustom
SELECT Suppliers.ContactName, Products.ProductName, Suppliers.Phone
FROM Suppliers Inner Join Products
ON Suppliers.SupplierID = Products.SupplierID;
Select customers.customername, customers.address,orders.orderid
From orders left join customers
On orders.shipperid=customers.customerid;
Select Shippers.ShipperID, Shippers.ShipperName, Orders.OrderID
From Shippers Left Join Orders
Where Shippers.ShipperID = Orders.ShipperID
Order by Shippers.ShipperID;
Select Employees.EmpoyeeID, Employees.FirstName, Orders.OrderID
From Orders Right Join Employees
On Orders.ShipperID = Employees.EmployeeID
Order by Employees.EmployeeID;
SELECT * FROM ORDERS;
SELECT CUSTOMERS.CUSTOMER_NAME, ORDERS.ORDERID
FROM CUSTOMERS
FULL OUTER JOIN ORDERS
ON CUSTOMERS.CUSTOMERID=ORDERS.CUSTOMERID
ORDER BY CUSTOMERS.CUSTOMERNAME;
SELECT * from customers
where city IN (select city from customers
group by city
having count (*)>1)
SELECT DISTINCT city FROM customers
UNION
SELECT DISTINCT city FROM suppliers;
Task8: Write an SQL query that lists the number of customers in each
country, sorted high to low
POST:
PUT:
Delete:
Get:
Post:
Put:
Delete: