You are on page 1of 5

Group Members :

Name ID

Sk. Shahriar Rahman 1712886630

Dewan Tauhidul Tanay 1711511630

Tashfiq Rahman Khan 1411446630

#A

use northwind;

select productname from products

where UnitsOnOrder=0;

#B

select Productname from products

where QuantityPerUnit like '%bottle%';

#C

select OrderID, (UnitPrice*Quantity) as Total_price from order_details;

#D

select CompanyName,ContactTitle,City from suppliers

where Country= 'USA';

#E

select count(orders.OrderID) as NumOfOrders

from orders
where orders.OrderDate>= '1996-12-01' and orders.OrderDate<= '1997-03-31';

#F

select concat(FirstName,' ',LastName) as Fullname,city from employees;

#G

SELECT order_details.orderID, order_details.ProductID, suppliers.CompanyName

FROM order_details

JOIN products ON (order_details.ProductID = products.ProductID)

JOIN suppliers ON (products.SupplierID = suppliers.SupplierID)

WHERE order_details.orderID BETWEEN 10300 AND 10350;

#H

select CustomerID from orders

where ShipRegion = 'SP';

#I

SELECT shippers.CompanyName,shippers.ShipperID,orders.OrderID

FROM orders

JOIN shippers ON (orders.ShipVia = shippers.ShipperID)

WHERE shippers.shipperID =1 OR shippers.shipperID =3 ;

#J

select SupplierID, count(*) as Numberofproducts from products


group by SupplierID;

#K

SELECT FirstName,LastName

FROM employees

WHERE LastName like 'A%' OR LastName like 'C%';

#L

You might also like