Can someone please help
1.getting the following error when running the following Query
Error:
Operand datatype bit is invalid for min operator .
I have googled and suggestion were to use CASE WHEN or CAST as tinyint. just wondering which is better and why as both seem to work but not sure which one is more efficient
2.
CurrentQtr Column values are below
0
0
0
0
1
1.getting the following error when running the following Query
Error:
Operand datatype bit is invalid for min operator .
I have googled and suggestion were to use CASE WHEN or CAST as tinyint. just wondering which is better and why as both seem to work but not sure which one is more efficient
SQL:
SELECT
*
Min(Quarters.CurrentQtr) as MinofCQtr
FROM Quarters
2.
CurrentQtr Column values are below
0
0
0
0
1
Last edited: