Professional Documents
Culture Documents
Advanced SQL
Advanced SQL
we can only remove tthe timestamptz whenever we need in the tabless but... we cant add it back
EXTRACT() :
Allows to extract the only sub components of time like .. year,month,day,week,quater.. from data
SYNTAX ::
AGE() :
SYNTAX :::
AGE(coloum)
RETURNS :
TO_CHAR() :
SYNTAX :::
TO_CHAR(date, 'mm-dd-yyyy')
DOW :
SYNTAX ::
MATHEMATICAL FUNCTIONS :
can use the mathematical functions like addition,sub,div.. all FYI use the google to know the more
syntax..
can use the string as we want all FYI use the google to know the more syntax..
Sub Query
used to get the extra answers thaan we get and filter the data..
EXAMPLE ::
EXISTS :
SYNTAX ::
EXISTS(... .)
EXAMPLE ::
SELF JOIN :
Used to join the two same tables i.e.,,, join the same table
EXAMPLE :::
ON TableA.somecol = TableB.othercol