PostgreSQL hints
select (date_trunc('month', now()) + interval '2 month' - interval '1 day')::date as last_day_of_next_month;
select (date_trunc('month', now()) + interval '1 month')::date as first_day_of_next_month;
select to_char(now(), 'YYYY-MM-01') as first_day_of_month;
select (date_trunc('month', now()) + interval '1 month' - interval '1 day')::date as last_day_of_current_month;
Ex1 : 'hello' || '_world' => hello_world
Ex2 : 'John's' || ' is pro.' => John's is pro.
Ex3 : ''' || 'Jack' || ''' => 'Jack'.
SELECT COALESCE(ta.* != tb.*, false) AS changeDetect, ta.* FROM tableA AS ta RIGHT JOIN tableB AS tb USING (id) where COALESCE(ta.* != tb.*, false) is TRUE;