I have below queries but I need to combine into one query, facing difficulty ,help me
select count(*), s.institutionid, substr(m.timestamp, 1, 4) as y