1 SELECT FIRSTNAME, COUNT(SALES_ID)
2 FROM CUSTOMER C, CUSTOMER_SALE CS
3 WHERE C.CUST_ID = CS.CUST_ID
4 GROUP BY FIRSTNAME, COUNT(SALES_ID)
5 ORDER BY FIRSTNAME
SELECT PRODUCT_ID, (SYSDATE - LAST_UPDATE_DATE) FROM PRODUCT WHERE LAST_UPDATE_DATE > '01-NOV-99'
SELECT PRODUCT_ID, LOG_DATETIME FROM PET_CARE_LOG WHERE CREATED_BY_USER = USER
SELECT ROWNUM, PACKAGE_ID, PRODUCT_NAME FROM PRODUCT WHERE PACKAGE_ID = NULL
SELECT LEVEL, P.PACKAGE_ID, P.PRODUCT_NAME FROM PRODUCT P, SALE_ITEM S WHERE LEVEL > 2 AND P.PRODUCT_ID = S.PRODUCT_ID