Isn't the WHERE handled by the CASE statement?
If not, then the WHERE is the CASE statement and it would seem to be a bit redundant to add a WHERE that said the same thing.That doesn't make sense to me.Code:SELECT clmns.name AS [Name], usrt.name AS [DataType], ISNULL(baset.name, N'') AS [SystemType] FROM <name of my table> WHERE baset.precision = 'float' CAST( CASE WHEN baset.precision = 'float') THEN 'Yes' ELSE 'No' END
Or, are you saying I don't need the CASE statement at all and I just need a WHERE clause?![]()




Reply With Quote