cara mengekstrak hanya tahun dan bulan dari tanggal di 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>