Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle first day of last year

-- Oracle: First day of previous year
SELECT trunc(add_months(sysdate, -12), 'YEAR') FROM DUAL;
Comment

oracle first and last day of previous month

select add_months(trunc(sysdate,'mm'),-1), last_day(add_months(trunc(sysdate,'mm'),-1)) from dual 
Comment

oracle last day of month

-- Last day of current month
SELECT trim(to_date(last_day(sysdate), 'DD/MM/YYYY')) AS LASTDAY FROM DUAL;
Comment

PREVIOUS NEXT
Code Example
Sql :: rror: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client 
Sql :: alter sequence postgres 
Sql :: PLS-00225 type 
Sql :: your password does not satisfy the current policy requirements 
Sql :: postgresql reset auto increment 
Sql :: how to copy a table from one database to another in mysql 
Sql :: mysql text type max length 
Sql :: oracle compile whole schema 
Sql :: select dba users oracle 
Sql :: group_concat limit mysql 
Sql :: sql try catch 
Sql :: sql exclude duplicates and find even id 
Sql :: pyodbc connect to sql server 
Sql :: how to alter table name in mysql 
Sql :: upload database mysql command line 
Sql :: alter sequence restart with postgresql 
Sql :: psql restore from tar 
Sql :: psql count where not null 
Sql :: liquibase update row 
Sql :: dirinfo.name my snippets in stored procedure 
Sql :: postgres check timezone 
Sql :: oracle set date format 
Sql :: oracle sql truncate table 
Sql :: mysql breakline on string 
Sql :: create column mysql terminal 
Sql :: mysql add 2 hours 
Sql :: mysql order by desc limit 
Sql :: drop table in mysql 
Sql :: Oracle Column Names of a table 
Sql :: add timestamp column to existing table ms sql server 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =