Please help me with these SQL queries
1. Give a list of customers (IDs and names) who have purchased multiple items, but all of which were the same color. Multiple items means more than one sale item. Use what you learned in the previous problem about counting colors.
2. Give a list of products and their list prices for sneakers whose list price is less than the average for flats. Only show product names and prices.
3. What is the most expensive sale item (SalePrice * Quantity) ever made and to whom was it made (first and last name)? Name the column LargestItemSale. (Use a max subquery in the WHERE clause.)
Manufacturer:
- ManufacturerID
- ManufacturerName
- Address1
- Address2
- City
- State
- PostalCode
- Country
- Phone
- Fax
- Contact
- URL
Customer:
- CustomerID
- FirstName
- LastName
- StreetAddress
- City
- State
- PostalCode
- Country
- Phone
Product:
- ManufacturerID
- ProductID
- ProductName
- Composition
- ListPrice
- PostalCode
- Gender
- Category
- Color
- Description
- Phone
- Fax
- Contact
- URL
SaleItem:
- SaleID
- ProductID
- ItemSize
- SaleID
- Quantity
- SalePrice
InventoryItem:
- ProductID
- ItemSize
- QtyOnHand
PurchaseItem:
- ProductID
- ItemSize
- PurchaseID
- Quantity
- PurchasePrice
Sale:
- SaleID
- SaleDate
- CustomerID
Purchase:
- PurchaseID
- PurchaseDate
- EmployeeID
- ExpectedDeliveryDate
- ManufacturerID
- Shipping
Employee:
- EmployeeID
- FirstName
- LastName
- Address
- City
- State
- ZIP
- Phone
- ManagerID
- SSN
- EmailAddress
- HireDate
Shipping:
- ShippingID
- EmployeeID
- ShippingDate
SalaryEmployee:
- EmployeeID
- Salary
WageEmployee:
- EmployeeID
- Wage
- MaxHours