Possible Duplicate:
Converting Access Code to SQL
I have an access code using IIF statements that have 2 in 1 and I am trying to rewrite them for SQL as CASE statements but I am hitting some speedbumps.
Sum(IIf([RRDD] Not Like "12*" 
    And [RRDD] Not Like "13*" 
    And [RRDD] Not Like "16*" 
    And [RRDD] Not Like "17*" 
    And [RRDD] Not Like "2706" 
    And [RRDD] Not Like "2707" 
    And [RRDD] Not Like "2331",
    CDbl([2011 Total])*IIf(IsNumeric([Dur_In_Hours]),
    CDbl([Dur_In_Hours]),0),0)) AS SP_DOM_COST
WHere the first IIF is being multiplied by the second IIF is where I am confused, and i need it to be in SQL format
 
     
     
    