Skip to content Skip to sidebar Skip to footer
Showing posts with the label Case

What Does It Happen When Using Multiple Case ... When Statements In The Same Sql Query?

After my previous question, I have an SQL query like the following: SELECT * WHERE ... ORDER BY … Read more What Does It Happen When Using Multiple Case ... When Statements In The Same Sql Query?

Creating Column Based On Where Condition

I've the following query: SELECT tn.Date, b1.Name DrBook, b2.Name CrBook, c1.Name DrContro… Read more Creating Column Based On Where Condition

Mssql Case When Statement Error

I'm working on trigger in MSSQL and i got this error message: Msg 512, Level 16, State 1, Proc… Read more Mssql Case When Statement Error

Sql Server : Conversion Error Numeric To Varchar Case

I have this query: CASE ClaimsFees.TBA WHEN 0 THEN CAST(IndemnityReserve AS NUMERIC(9,2)) E… Read more Sql Server : Conversion Error Numeric To Varchar Case

How To Use A Case Statement Within A Select Count Statement?

I need to make a case statement. Depending on what the variables value is, it needs to select the c… Read more How To Use A Case Statement Within A Select Count Statement?

Replacing Null From Results Of Case Query

I have the following code which generates data similar to mine. The posting here (PivotWithoutAggr… Read more Replacing Null From Results Of Case Query