select sum(Score) from student where id='1' and date>='01-june'+year(date)-1 and date<='30-july'+year(date)
select sum(Score) from student where id='1' and date>= convert(datetime,convert(varchar(4),year(date)-1) + '-06-01') and convert(datetime,convert(varchar(4),year(date)) + '-07-30')
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)