SELECT P.PRODUCT_NAME FROM PRODUCT P WHERE PRODUCT_ID IN (SELECT P.PRODUCT_ID FROM PRODUCT P)
SELECT C.FIRSTNAME FROM CUSTOMER C WHERE (C.CUST_ID, 'Dog') IN (SELECT CS.CUST_ID, P.PRODUCT_NAME FROM PRODUCT P, CUSTOMER_SALE CS, SALE_ITEM SALE WHERE CS.SALES_ID = SALE.SALES_ID AND P.PRODUCT_ID = SALE.PRODUCT_ID)
SELECT CREATED_BY_USER, COUNT(*) FROM PET_CARE_LOG WHERE CREATED_BY_USER IN (SELECT DISTINCT UPDATED_BY_USER, SALE_PRICE FROM PRODUCT) GROUP BY CREATED_BY_USER ORDER BY CREATED_BY_USER
SELECT LAST_UPDATE_DATE, COUNT(*) FROM PRODUCT WHERE (UPDATED_BY_USER, TRUNC(LAST_UPDATE_DATE)) IN (SELECT DISTINCT CREATED_BY_USER, TRUNC(LOG_DATETIME) FROM PET_CARE_LOG) GROUP BY LAST_UPDATE_DATE ORDER BY 1
SELECT P.PRODUCT_NAME FROM PRODUCT P, PET_CARE_LOG PCL WHERE P.PRODUCT_ID(+) = PCL.PRODUCT_ID(+)