Last week, the last day of the inquiry date
TO_CHAR((select trunc(sysdate,'d')-1 from dual),'YYYY-MM-DD')
Query on the last day of the month date
TO_CHAR((select trunc(sysdate,'mm')-1 from dual),'YYYY-MM-DD')
Last week, the last day of the inquiry date
TO_CHAR((select trunc(sysdate,'d')-1 from dual),'YYYY-MM-DD')
Query on the last day of the month date
TO_CHAR((select trunc(sysdate,'mm')-1 from dual),'YYYY-MM-DD')