1) You are missing ELSE statements2) You are misusing AND's and OR's3) You are using both integer values and string values for same columnSELECT TOP(100) CurrentOverallBalance.cLoanOriginationType AS FinanceCoCode, case CurrentOverallCustomer.cRecType when 0 then cEmail else '' end AS PrimaryBorrowerEmail, case CurrentOverallCustomer.cRecType when 6 then cEmail else '' end AS CoBorrowerEmailfrom CurrentOverallCustomerinner join CurrentOverallBalance on CurrentOverallBalance.nAccount = CurrentOverallCustomer.nAccountwhere cRecType IN ('6', '0') and cEmail like '%@%.%'
N 56°04'39.26"E 12°55'05.63"