btetsola
Technical User
- Oct 19, 2013
- 6
Hello
I've been trying to put together several tables/queries in order to pull out data from the truncated table below. I was wondering if a Sql 'IIF' with 'switch' type query could do it in one go.
Parameters: If the [Actual Date] is Null and the [Month Slippage] is >0 then retrieve the row, if false, [Actual Date] is not Null and the [Month2 Slip]>0 then retrieve row.
Base Date Previous Date Current Date Actual Date Month Slippage Month2 Slip Previous DateArch Current DateArch Actual DateArch Month Slippage
14/01/13 05/06/13 10/08/13 2 2 05/06/13 10/08/13 17/07/13 2
16/02/13 13/05/13 11/07/13 26/09/13 2 13/05/13 11/07/13 26/09/13 2
17/02/13 25/02/13 29/02/13 0 3 25/02/13 16/09/13 06/12/13 0
19/02/13 12/03/13 19/04/13 26/04/13 1 1
Thank you
Benson