declare @start_date date declare @end_date date set @start_date =\'01-11-2020\' set @end_date =\'30-11-2020\' SELECT /**TOP (1000)**/ HC_NUMBER ,person_id