SELECT TRUNC (ADD_MONTHS (SYSDATE, 1), 'MON'), TO_CHAR (TRUNC (ADD_MONTHS (SYSDATE, 1), 'MON'), 'DD-MON-RRRR') FROM DUAL
Showing posts with label DATE. Show all posts
Showing posts with label DATE. Show all posts
Thursday, June 30, 2022
Wednesday, February 23, 2022
Script to Find All Sundays Date for a given Date Within that Year
DECLARE
l_date DATE := '&P_ENTER_ANY_DATE';
l_first_sunday DATE;
l_last_sunday DATE;
BEGIN
--Find 1st Sunday
l_first_sunday := NEXT_DAY (TRUNC (l_date, 'YYYY') - 1, 'SUN');
--Find last Sunday
l_last_sunday := NEXT_DAY (ADD_MONTHS (TRUNC (l_date, 'YYYY') - 1, 12), 'SUN') - 7;
WHILE l_first_sunday <= l_last_sunday
LOOP
DBMS_OUTPUT.PUT_LINE ( l_first_sunday);
l_first_sunday := l_first_sunday + 7;
END LOOP;
END;
Subscribe to:
Posts (Atom)
APEX$TASK_PK
APEX$TASK_PK is a substitution string holding the primary key value of the system of records
-
The XDOLoader utility is a Java-based command line program to load template (RTF, PDF, and XSL-FO), XML, and XSD files to the XML Publis...
-
SELECT aca.check_number ,aia.invoice_id ,aia.invoice_num ,aia.invoice_amount ,distribution_line_number ,aida.accrual_p...
-
Serial_number_control_code column contains values as 1,2,5 &6 in mtl_system_items_b table. Inorder to find meaning for this values r...