i am working on a c# project in that i have made this query which is
SELECT COUNT(customer_column)
FROM table2
WHERE Datepart(mm, record_column) = @myMonthSelected
AND Datepart(yy, record_column) = @myYearSelected
it counts the total number of rows after sorting and now i want it to modify that a column which is having a “Bit” data type, i want to count the total number of true rows by sorting month and year same as the above query. can it be possible to narrow my search?
Try this