Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle 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 :: how to use mysql_tzinfo_to_sql on windows 
Sql :: ring get column value from the fetched row using the odbc_getdata() 
Sql :: Table aliases 
Sql :: ms sql filter all sympbol 
Sql :: how many rows affected in sqllite 
Sql :: select 1 from orders 
Sql :: mysql datenbank anzahl anzeigen 
Sql :: how to connect aws postgresql database using pgadmin 4 
Sql :: why mssql rds is using more than 95 memory pool 
Sql :: quantity count and group by some article 
Sql :: mysql primary vs unique 
Sql :: datagrip go to line 
Sql :: sql find record cannot cast date 
Sql :: oracle query to see what scema i am working in 
Sql :: Get the First and Last Word from a String or Sentence 
Sql :: The fetch keyword oracle 
Sql :: oracle 11g forget password 
Sql :: inner joint 
Sql :: How to query data in many to many relationship in flask sql alchemy 
Sql :: sql trigger 
Sql :: psql database does not exist 
Sql :: Executing an update/delete query 
Sql :: SQL SERVER microsoft How to Add Column at Specific Location in Table 
Sql :: minus vs except in sql 
Sql :: raven ql select count 
Csharp :: unity set mouse cursor lock 
Csharp :: c# gzip byte array 
Csharp :: .net core temp directory 
Csharp :: vue.createapp is not a function 
Csharp :: string to int c# unity 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =