Jak wyodrębnić tylko rok i miesiąc od daty w SQL
SELECT FORMAT(<your-date-field>,"YYYY-MM") AS year-date FROM <your-table>
Badthumbs
SELECT FORMAT(<your-date-field>,"YYYY-MM") AS year-date FROM <your-table>