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 :: unable to open database database.db file is encrypted or is not a database 
Sql :: mysql insert into select with recursive 
Sql :: cursor.execute (sql, value) ValueError: operation parameter must be str 
Sql :: mysql convert charset 
Sql :: SQL DROP TABLES EVENT 
Sql :: play framework connection via windows sql server 
Sql :: oracle create chain rule 
Sql :: sql dmv to capture updates 
Sql :: tsql create table with variable name 
Sql :: extract domain name from email id mariadb 
Sql :: sql workbench 
Sql :: sql get frist of month 
Sql :: To Create directory 
Sql :: http://challenge01.root-me.org:58036/wsasd 
Sql :: sqlite mode default 
Sql :: how to map sql column to custom names 
Sql :: SOQL Parent to child 
Sql :: write sql query to show the details start from digit 
Sql :: show specific partition hive query 
Sql :: unique veri seçme SQL 
Sql :: set default value now() date 
Sql :: dataframe lambda elif 
Sql :: view psql output in horizontal scrolling 
Sql :: mysql master slave setup with keepalived 
Sql :: sql grant select only 
Sql :: show * from table mysql 
Sql :: sql select rows between 1000 and 2000 
Sql :: Selecting data from table where sum of values in a column equal to the value in another column 
Sql :: postgres insert knex 
Sql :: SQL server datetime compare 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =