Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle date summer 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 :: heidisql check how much space a row 
Sql :: Convert LDAP Epoch to Date 
Sql :: soql queries for not contact related account records in salesforce 
Sql :: get enginge db mysql 
Sql :: Using Set<Id in Dynamic SOQL 
Sql :: Uncomment listen_address=localhost 
Sql :: ceil upto 2 decimal place mysql 
Sql :: how we can perform acid Operations in sql with examples 
Sql :: sql dcl queries 
Sql :: create synonym for dblink in oracle 
Sql :: oracle list subpartitions 
Sql :: convert sql query to linq online 
Sql :: postgresql GRANT role_2 TO role_1 
Sql :: restarting of postgresql server when not connecting to default port 
Sql :: creating directory /var/lib/postgresql/data ... initdb: error: could not create directory "/var/lib/postgres/data": Permission denied 
Sql :: triggers in mysql 
Sql :: set mysql 
Sql :: How to return only the Date from a SQL Server DateTime datatype 
Sql :: ring MySQL presents the usage of MySQL_Autocommit(), MySQL_Commit() & MySQL_RollBack() functions. 
Sql :: mariadb set vertical output format 
Sql :: faster mysql imports 
Sql :: how to take recent row without limit in mysql 
Sql :: Aktor yang pernah terlibat lebih dari 3 film di sql 
Sql :: %ORACLE_HOME%database 
Sql :: sql alchemy get last n elements 
Sql :: avoid duplicate in one to many relationship join in sql 
Sql :: oracle date winter time 
Sql :: mysql grant user privileges to database that has suffix and prefix 
Sql :: SQL Remove Primary Key Constraint - SQL Server, Oracle 
Sql :: Shell Comands 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =