고객:Customers(CustomerID, CustomerName, ContactName, Address, City, PostalCode,Country)
제품의 카테고리정보:Categories(CategoryID, CategoryName, Description)
종업원:Employees(EmployeeID, LastName, FirstName, BirthDate, Photo)
주문상세정보:OrderDetails(OrderDetailID, OrderID, ProductID, Quantity)
주문정보:Orders(OrderID,
CustomerID, EmployeeID, OrderDate, ShipperID)
제품정보:Products(ProductID,
ProductName, SupplierID, CategoryID,
Unit, Price)
배달자:Shippers(ShipperID, ShipperName,
Phone) 공급자:Suppliers(SupplierID, SupplierName, ContactName, Address, City, PostalCode,
Country, Phone) 위와 같이 테이블이 존재합니다. 1)전체 고객의 30% 이상이 구매한 제품의 제품카테고리와 고객이름을 출력하시오 2)2가지 이상의 카테고리에 제품을 구매한 고객의 이름을 출력하시오 1번과 2번의 sql문을 알고싶습니다.!!! 또한 3) 제품별 총 판매 금액은 sum(orderdetails.quantity*products.price)가 맞나요?