I want to select sum of fiels value between two Dates
so here i using this command
SELECT SUM (TotalCost) FROM SiteExpense where ToDate between @dtp and @dtp1
But it give Error

so plz Resolve It

nmaillet commented: Give some details... +0

Share your error also

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.