Hi guys
i want to select count from database
this is table
USE [Agency]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[productivity_Tb](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Date1] [datetime] NULL,
[Month1] [int] NULL,
[Collector] [nvarchar](max) NULL,
[CM_ID] [int] NULL,
[ACC_NO] [int] NULL,
[Balance] [money] NULL,
[BKT] [nvarchar](255) NULL,
[Call_Visit] [nvarchar](255) NULL,
[Trials] [nvarchar](255) NULL,
[PTP_Type] [nvarchar](255) NULL,
[PTP_Date] [date] NULL,
[PTP_Amount] [money] NULL,
[PTP_Kep_Broken] [nvarchar](255) NULL,
[Kept_Amount] [money] NULL,
[feedback] [nvarchar](255) NULL,
[New_Address] [nvarchar](255) NULL,
[NEW_MOBIL] [int] NULL,
[Area] [nvarchar](255) NULL,
[Officer] [nvarchar](255) NULL,
[Agency] [nvarchar](255) NULL,
[situation] [nvarchar](255) NULL,
CONSTRAINT [PK_productivity_Tb] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
now i want to get count of Collector between date1 = "" and date1 ="" but i want it to didnot calculate the repeat Collector order by date1
i need this query