https://helperbyte.com/questions/497684/how-to-convert-query-from-tsql-to-oracle-sql