I want to select sql:
SELECT "year-month" from table group by "year-month" AND order by date, where
year-month – format for date “1978-01″,”1923-12”.
select to_char of couse work, but not “right” order:
to_char(timestamp_column, 'YYYY-MM')
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
e.g.
http://www.postgresql.org/docs/8.0/interactive/functions-datetime.html