sql - How to fetch data from a query by extracting month from the created date field -


i have table , want extract data on basis of month value of created date field. how can obtained? here query:

select * (table name a) select extract (month a.createddate )from table name  

table contains field timestamp type.

if need apply filter on month of timestamp column:

select * yourtable extract (month yourfield) = ... 

Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

linux - gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now -

delphi - Disable and change color of node in Treeview -