Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle sql date winter time

ALTER SESSION SET NLS_LANGUAGE=english; -- First day of week
SELECT
	-- Last Sunday of October at 02:00
	NEXT_DAY(LAST_DAY(TO_DATE(TO_CHAR('01/10/' 
        || (EXTRACT(YEAR FROM SYSDATE)-5 + level) || '02:00:00'), 
           'DD/MM/YYYY HH24:MI:SS')) - INTERVAL '7' DAY, 'SUNDAY') AS H_WINTER,
	-- Last Sunday of March at 02:00 (missing hour)
	NEXT_DAY(LAST_DAY(TO_DATE(TO_CHAR('01/03/' 
		|| (EXTRACT(YEAR FROM SYSDATE)-5 + level) || '02:00:00'),
		'DD/MM/YYYY HH24:MI:SS')) - INTERVAL '7' DAY, 'SUNDAY') AS H_SUMMER
FROM DUAL CONNECT BY level <=10;
Comment

PREVIOUS NEXT
Code Example
Sql :: install sql 
Sql :: hou to run job from cmd .exe sql server jop 
Sql :: realtime database push multiple values 
Sql :: like sql for second letter of the family name 
Sql :: how to list all values of a column that start with a letter in sql 
Sql :: hierarchal database table 
Sql :: mysql config address 
Sql :: mariadb maximum left join 
Sql :: mysql collation portugues brasil 
Sql :: Oracle Function execution 
Sql :: leftjoin in sql 
Sql :: mysql update column with value from another table 
Sql :: sql run online 
Sql :: prepared statement mysql java delete selected rows 
Sql :: SQL Views for Complex Queries 
Sql :: no customers ordered 
Sql :: https://livesql.oracle.com/apex/livesql/s/l8fedwph53gt5gigbacwvu6m0 
Sql :: sort by last two number sql 
Sql :: Getting error while running 50 MB script on SQL Server 
Sql :: phpmyadmin tabellentyp ändern 
Sql :: sap return 
Sql :: mysql let join 
Sql :: odoo css not loaded 
Sql :: delete hangfire retries list 
Sql :: pl sql package body 
Sql :: Update All tables COLLATE DATABASE_DEFAULT 
Sql :: ring get columns count in the query result using the odbc_colcount() 
Sql :: get all employees if name ends with in sql 
Sql :: how to add mysql to path on termin after installation 
Sql :: codeigniter 3 get best-selling products 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =