I\'m not sure what should I write in the following SQL query to show \'date\' column like this: \"month-year\" - \"9-2011\".
SELECT MONTH(date) + \'.\' + YE
In postgresql I can write a similar query with a date-format function (to_char) and grouping just by date:
SELECT to_char (datum, 'MM-YYYY') AS mjesec FROM test GROUP BY datum ORDER BY datum;
Such thing is surely possible with SQL-Server too, isn't it?