Oracle SQL for ISM6218