Bagaimana dengan:
select datepart(yyyy, [date]) as [year]
from shoptransfer
group by datepart(yyyy, [date])
Atau:
select count(*) as qty, datepart(yyyy, [date]) as [year]
from shoptransfer
group by datepart(yyyy, [date])
order by [year]
Ini didasarkan pada perintah OP:"Saya ingin mengelompokkan menurut tahun bagian tanggal (varchar) kolom"