Oracle Database 12c R2 SQL: Restricting and Sorting Data