Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle sql first day of month

-- First day of month
SELECT TRUNC(sysdate, 'MONTH') from dual;
Comment

oracle sql first day of year

-- Oracle: First day of year
SELECT TRUNC(sysdate, 'YEAR') FROM DUAL;
Comment

oracle sql first day of quarter

-- trunc(date, format)						DUAL is for Oracle
SELECT trunc(sysdate, 'Q') FROM DUAL;       -- 1rst quarter day
SELECT trunc(sysdate) FROM DUAL;            -- today 00:00:00
SELECT trunc(sysdate, 'YEAR') FROM DUAL;    -- 1rst year day
SELECT trunc(sysdate, 'MONTH') FROM DUAL;   -- 1rst month day
Comment

PREVIOUS NEXT
Code Example
Sql :: postgres DROP and create contraint 
Sql :: PLS-00225 type 
Sql :: mysql remove foreign key constraint 
Sql :: grant lock tables privilege mysql 
Sql :: postgresql drop primary key constraint 
Sql :: psql view enum values 
Sql :: Check Table Exists 
Sql :: convert epoch to date in sql server 
Sql :: how to create index mysql 
Sql :: mariadb show tables 
Sql :: sql eliminare un record 
Sql :: create schema postgres 
Sql :: mysql get db name 
Sql :: oracle list next running jobs 
Sql :: sql server reset auto increment 
Sql :: mysql set root password 
Sql :: postgres convert exisiting column to text 
Sql :: dynamics 365 x++ aggregate querybuilddatasource 
Sql :: left join with only first record 
Sql :: how to start mysql in terminal 
Sql :: pentaho + pasar de excel a sql 
Sql :: create table sql server auto increment primary key 
Sql :: display users in mysql 
Sql :: start mysql linux terminal 
Sql :: async await mysql nodejs 
Sql :: ALL_TAB_PARTITIONS 
Sql :: how to count null values in mysql 
Sql :: add postgresql to path 
Sql :: mysql update inner 
Sql :: what is initial catalog in sql connection string 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =