
SELECT     TOP (100) PERCENT np.wrapno, np.visno,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot = 999 or np.bvmttot = '999' or 
			np.ttotal is null or np.wmsrtot is null or np.bvmttot is null THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot=888 or np.bvmttot='888' THEN CAST(888 as float)
		ELSE (((np.ttotal-coefs2.mu_ttotal_cu)/coefs2.sigma_ttotal_cu + 
				(np.bvmttot-coefs2.mu_bvmttot_cu)/coefs2.sigma_bvmttot_cu + 
				(np.wmsrtot-coefs2.mu_wmsrtot_cu)/coefs2.sigma_wmsrtot_cu)/3 - coefs2.mu_imm_lrn_cu)/coefs2.sigma_imm_lrn_cu END
	as z_imm_lrn,
	CASE WHEN np.drraw = 999 or np.wmsrtot2 = 999 or np.bvmtdel = '999' or 
			np.drraw is null or np.wmsrtot2 is null or np.bvmtdel is null THEN CAST(999 as float)
		WHEN np.drraw=888 or np.wmsrtot2=888 or np.bvmtdel='888' THEN CAST(888 as float)
		ELSE (((np.drraw - coefs2.mu_drraw_cu)/coefs2.sigma_drraw_cu +
	            (np.bvmtdel - coefs2.mu_bvmtdel_cu)/coefs2.sigma_bvmtdel_cu +
				(np.wmsrtot2 - coefs2.mu_wmsrtot2_cu)/coefs2.sigma_wmsrtot2_cu)/3 - coefs2.mu_del_rec_cu)/coefs2.sigma_del_rec_cu END
	as z_del_rec,
	CASE WHEN np.trlb = 999 or np.stroocw = 999 or np.stroocwe = 999 or np.waisrtot = 999 or 
			np.trlb is null or np.stroocw is null or np.stroocwe is null or np.waisrtot is null THEN CAST(999 as float)
		WHEN np.trlb=888 or np.stroocw=888 or np.stroocwe=888 or np.waisrtot=888 THEN CAST(888 as float)
		ELSE ((-1*(np.trlb - coefs2.mu_trlb_cu)/coefs2.sigma_trlb_cu +
	             (np.stroocw - np.stroocwe - coefs2.mu_stroopcw_cor_cu)/coefs2.sigma_stroopcw_cor_cu +
				 (np.waisrtot - coefs2.mu_waisrtot_cu)/coefs2.sigma_waisrtot_cu)/3 - coefs2.mu_exec_fn_cu)/coefs2.sigma_exec_fn_cu END
	as z_exec_fn,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot2 = 999 or np.waisrtot = 999 or 
			np.ttotal is null or np.wmsrtot2 is null or np.waisrtot is null THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot2=888 or np.waisrtot=888 THEN CAST(888 as float)
		ELSE (((np.wmsrtot2 - coefs2.mu_wmsrtot2_cu)/coefs2.sigma_wmsrtot2_cu +
	             (np.waisrtot - coefs2.mu_waisrtot_cu)/coefs2.sigma_waisrtot_cu +
	             (np.ttotal - coefs2.mu_ttotal_cu)/coefs2.sigma_ttotal_cu)/3 - coefs2.mu_pacc3_ds_cu)/coefs2.sigma_pacc3_ds_cu END
	as z_pacc3_ds,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot2 = 999 or np.trlb = 999 or 
			np.ttotal is null or np.wmsrtot2 is null or np.trlb is null THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot2=888 or np.trlb=888 THEN CAST(888 as float)
		ELSE (((np.wmsrtot2 - coefs2.mu_wmsrtot2_cu)/coefs2.sigma_wmsrtot2_cu +
	             -1*(np.trlb - coefs2.mu_trlb_cu)/coefs2.sigma_trlb_cu +
		     (np.ttotal - coefs2.mu_ttotal_cu)/coefs2.sigma_ttotal_cu)/3 - coefs2.mu_pacc3_tmtb_cu)/coefs2.sigma_pacc3_tmtb_cu END
	as z_pacc3_tmtb,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot2 = 999 or np.waisrtot = 999 or np.mmsetot = 999 or
			np.ttotal is null or np.wmsrtot2 is null or np.waisrtot is null or np.mmsetot is null THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot2=888 or np.waisrtot=888 or np.mmsetot=888 THEN CAST(888 as float)
		ELSE (((np.wmsrtot2 - coefs2.mu_wmsrtot2_cu)/coefs2.sigma_wmsrtot2_cu +
	             (np.waisrtot - coefs2.mu_waisrtot_cu)/coefs2.sigma_waisrtot_cu +
		     (np.ttotal - coefs2.mu_ttotal_cu)/coefs2.sigma_ttotal_cu +
		     (np.mmsetot - coefs2.mu_mmsetot_cu)/coefs2.sigma_mmsetot_cu)/4 - coefs2.mu_pacc4_ds_mmse_cu)/coefs2.sigma_pacc4_ds_mmse_cu END
	as z_pacc4_ds_mmse,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot2 = 999 or np.trlb = 999 or np.mmsetot = 999 or
			np.ttotal is null or np.wmsrtot2 is null or np.trlb is null or np.mmsetot is null THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot2=888 or np.trlb=888 or np.mmsetot=888 THEN CAST(888 as float)
		ELSE (((np.wmsrtot2 - coefs2.mu_wmsrtot2_cu)/coefs2.sigma_wmsrtot2_cu +
	             -1*(np.trlb - coefs2.mu_trlb_cu)/coefs2.sigma_trlb_cu +
		     (np.ttotal - coefs2.mu_ttotal_cu)/coefs2.sigma_ttotal_cu +
		     (np.mmsetot - coefs2.mu_mmsetot_cu)/coefs2.sigma_mmsetot_cu)/4 - coefs2.mu_pacc4_tmtb_mmse_cu)/coefs2.sigma_pacc4_tmtb_mmse_cu END
	as z_pacc4_tmtb_mmse,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot2 = 999 or np.waisrtot = 999 or np.flucfl = 999 or
			np.ttotal is null or np.wmsrtot2 is null or np.waisrtot is null or np.flucfl is null THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot2=888 or np.waisrtot=888 or np.flucfl=888 THEN CAST(888 as float)
		ELSE (((np.flucfl - coefs2.mu_flucfl_cu)/coefs2.sigma_flucfl_cu +
	             (np.waisrtot - coefs2.mu_waisrtot_cu)/coefs2.sigma_waisrtot_cu +
		     (np.wmsrtot2 - coefs2.mu_wmsrtot2_cu)/coefs2.sigma_wmsrtot2_cu +
		     (np.ttotal - coefs2.mu_ttotal_cu)/coefs2.sigma_ttotal_cu)/4 - coefs2.mu_pacc4_ds_cfl_cu)/coefs2.sigma_pacc4_ds_cfl_cu END
	as z_pacc4_ds_cfl,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot2 = 999 or np.waisrtot = 999 or np.mmsetot = 999 or np.animtotraw = 999 or
		np.ttotal is null or np.wmsrtot2 is null or np.waisrtot is null or np.mmsetot is null or np.animtotraw is null
		THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot2=888 or np.waisrtot=888 or np.mmsetot=888 or np.animtotraw=888 THEN CAST(888 as float)
		ELSE (((np.wmsrtot2 - coefs2.mu_wmsrtot2_cu)/coefs2.sigma_wmsrtot2_cu +
	          (np.waisrtot - coefs2.mu_waisrtot_cu)/coefs2.sigma_waisrtot_cu +
			  (np.ttotal - coefs2.mu_ttotal_cu)/coefs2.sigma_ttotal_cu +
			  (np.mmsetot - coefs2.mu_mmsetot_cu)/coefs2.sigma_mmsetot_cu +
			  (np.animtotraw - coefs2.mu_animtotraw_cu)/coefs2.sigma_animtotraw_cu)/5 - coefs2.mu_pacc5_animtot_cu)/coefs2.sigma_pacc5_animtot_cu END
	as z_pacc5_animtot,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot2 = 999 or np.waisrtot = 999 or np.trlb = 999 or np.flucfl = 999 or
		np.ttotal is null or np.wmsrtot2 is null or np.waisrtot is null or np.trlb is null or np.flucfl is null
		THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot2=888 or np.waisrtot=888 or np.trlb=888 or np.flucfl=888 THEN CAST(888 as float)
		ELSE (((np.wmsrtot2 - coefs2.mu_wmsrtot2_cu)/coefs2.sigma_wmsrtot2_cu +
	          (np.waisrtot - coefs2.mu_waisrtot_cu)/coefs2.sigma_waisrtot_cu +
			  (np.ttotal - coefs2.mu_ttotal_cu)/coefs2.sigma_ttotal_cu +
			  -1*(np.trlb - coefs2.mu_trlb_cu)/coefs2.sigma_trlb_cu +
			  (np.flucfl - coefs2.mu_flucfl_cu)/coefs2.sigma_flucfl_cu)/5 - coefs2.mu_pacc5_cfl_cu)/coefs2.sigma_pacc5_cfl_cu END
	as z_pacc5_cfl,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot = 999 or np.bvmttot = '999' or 
			np.ttotal is null or np.wmsrtot is null or np.bvmttot is null THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot=888 or np.bvmttot='888' THEN CAST(888 as float)
		ELSE 100+(15*(((np.ttotal-coefs2.mu_ttotal_cu)/coefs2.sigma_ttotal_cu + 
				(np.bvmttot-coefs2.mu_bvmttot_cu)/coefs2.sigma_bvmttot_cu + 
				(np.wmsrtot-coefs2.mu_wmsrtot_cu)/coefs2.sigma_wmsrtot_cu)/3 - coefs2.mu_imm_lrn_cu)/coefs2.sigma_imm_lrn_cu) END
	as std_imm_lrn,
	CASE WHEN np.drraw = 999 or np.wmsrtot2 = 999 or np.bvmtdel = '999' or 
			np.drraw is null or np.wmsrtot2 is null or np.bvmtdel is null THEN CAST(999 as float)
		WHEN np.drraw=888 or np.wmsrtot2=888 or np.bvmtdel='888' THEN CAST(888 as float)
		ELSE 100+(15*(((np.drraw - coefs2.mu_drraw_cu)/coefs2.sigma_drraw_cu +
	            (np.bvmtdel - coefs2.mu_bvmtdel_cu)/coefs2.sigma_bvmtdel_cu +
				(np.wmsrtot2 - coefs2.mu_wmsrtot2_cu)/coefs2.sigma_wmsrtot2_cu)/3 - coefs2.mu_del_rec_cu)/coefs2.sigma_del_rec_cu) END
	as std_del_rec,
	CASE WHEN np.trlb = 999 or np.stroocw = 999 or np.stroocwe = 999 or np.waisrtot = 999 or 
			np.trlb is null or np.stroocw is null or np.stroocwe is null or np.waisrtot is null THEN CAST(999 as float)
		WHEN np.trlb=888 or np.stroocw=888 or np.stroocwe=888 or np.waisrtot=888 THEN CAST(888 as float)
		ELSE 100+(15*((-1*(np.trlb - coefs2.mu_trlb_cu)/coefs2.sigma_trlb_cu +
	             (np.stroocw - np.stroocwe - coefs2.mu_stroopcw_cor_cu)/coefs2.sigma_stroopcw_cor_cu +
				 (np.waisrtot - coefs2.mu_waisrtot_cu)/coefs2.sigma_waisrtot_cu)/3 - coefs2.mu_exec_fn_cu)/coefs2.sigma_exec_fn_cu) END
	as std_exec_fn,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot2 = 999 or np.waisrtot = 999 or 
			np.ttotal is null or np.wmsrtot2 is null or np.waisrtot is null THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot2=888 or np.waisrtot=888 THEN CAST(888 as float)
		ELSE 100+(15*(((np.wmsrtot2 - coefs2.mu_wmsrtot2_cu)/coefs2.sigma_wmsrtot2_cu +
	             (np.waisrtot - coefs2.mu_waisrtot_cu)/coefs2.sigma_waisrtot_cu +
	             (np.ttotal - coefs2.mu_ttotal_cu)/coefs2.sigma_ttotal_cu)/3 - coefs2.mu_pacc3_ds_cu)/coefs2.sigma_pacc3_ds_cu) END
	as std_pacc3_ds,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot2 = 999 or np.trlb = 999 or 
			np.ttotal is null or np.wmsrtot2 is null or np.trlb is null THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot2=888 or np.trlb=888 THEN CAST(888 as float)
		ELSE 100+(15*(((np.wmsrtot2 - coefs2.mu_wmsrtot2_cu)/coefs2.sigma_wmsrtot2_cu +
	             -1*(np.trlb - coefs2.mu_trlb_cu)/coefs2.sigma_trlb_cu +
		     (np.ttotal - coefs2.mu_ttotal_cu)/coefs2.sigma_ttotal_cu)/3 - coefs2.mu_pacc3_tmtb_cu)/coefs2.sigma_pacc3_tmtb_cu) END
	as std_pacc3_tmtb,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot2 = 999 or np.waisrtot = 999 or np.mmsetot = 999 or
			np.ttotal is null or np.wmsrtot2 is null or np.waisrtot is null or np.mmsetot is null THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot2=888 or np.waisrtot=888 or np.mmsetot=888 THEN CAST(888 as float)
		ELSE 100+(15*(((np.wmsrtot2 - coefs2.mu_wmsrtot2_cu)/coefs2.sigma_wmsrtot2_cu +
	             (np.waisrtot - coefs2.mu_waisrtot_cu)/coefs2.sigma_waisrtot_cu +
		     (np.ttotal - coefs2.mu_ttotal_cu)/coefs2.sigma_ttotal_cu +
		     (np.mmsetot - coefs2.mu_mmsetot_cu)/coefs2.sigma_mmsetot_cu)/4 - coefs2.mu_pacc4_ds_mmse_cu)/coefs2.sigma_pacc4_ds_mmse_cu) END
	as std_pacc4_ds_mmse,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot2 = 999 or np.trlb = 999 or np.mmsetot = 999 or
			np.ttotal is null or np.wmsrtot2 is null or np.trlb is null or np.mmsetot is null THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot2=888 or np.trlb=888 or np.mmsetot=888 THEN CAST(888 as float)
		ELSE 100+(15*(((np.wmsrtot2 - coefs2.mu_wmsrtot2_cu)/coefs2.sigma_wmsrtot2_cu +
	             -1*(np.trlb - coefs2.mu_trlb_cu)/coefs2.sigma_trlb_cu +
		     (np.ttotal - coefs2.mu_ttotal_cu)/coefs2.sigma_ttotal_cu +
		     (np.mmsetot - coefs2.mu_mmsetot_cu)/coefs2.sigma_mmsetot_cu)/4 - coefs2.mu_pacc4_tmtb_mmse_cu)/coefs2.sigma_pacc4_tmtb_mmse_cu) END
	as std_pacc4_tmtb_mmse,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot2 = 999 or np.waisrtot = 999 or np.flucfl = 999 or
			np.ttotal is null or np.wmsrtot2 is null or np.waisrtot is null or np.flucfl is null THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot2=888 or np.waisrtot=888 or np.flucfl=888 THEN CAST(888 as float)
		ELSE 100+(15*(((np.flucfl - coefs2.mu_flucfl_cu)/coefs2.sigma_flucfl_cu +
	             (np.waisrtot - coefs2.mu_waisrtot_cu)/coefs2.sigma_waisrtot_cu +
		     (np.wmsrtot2 - coefs2.mu_wmsrtot2_cu)/coefs2.sigma_wmsrtot2_cu +
		     (np.ttotal - coefs2.mu_ttotal_cu)/coefs2.sigma_ttotal_cu)/4 - coefs2.mu_pacc4_ds_cfl_cu)/coefs2.sigma_pacc4_ds_cfl_cu) END
	as std_pacc4_ds_cfl,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot2 = 999 or np.waisrtot = 999 or np.mmsetot = 999 or np.animtotraw = 999 or
		np.ttotal is null or np.wmsrtot2 is null or np.waisrtot is null or np.mmsetot is null or np.animtotraw is null
		THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot2=888 or np.waisrtot=888 or np.mmsetot=888 or np.animtotraw=888 THEN CAST(888 as float)
		ELSE 100+(15*(((np.wmsrtot2 - coefs2.mu_wmsrtot2_cu)/coefs2.sigma_wmsrtot2_cu +
	          (np.waisrtot - coefs2.mu_waisrtot_cu)/coefs2.sigma_waisrtot_cu +
			  (np.ttotal - coefs2.mu_ttotal_cu)/coefs2.sigma_ttotal_cu +
			  (np.mmsetot - coefs2.mu_mmsetot_cu)/coefs2.sigma_mmsetot_cu +
			  (np.animtotraw - coefs2.mu_animtotraw_cu)/coefs2.sigma_animtotraw_cu)/5 - coefs2.mu_pacc5_animtot_cu)/coefs2.sigma_pacc5_animtot_cu) END
	as std_pacc5_animtot,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot2 = 999 or np.waisrtot = 999 or np.trlb = 999 or np.flucfl = 999 or
		np.ttotal is null or np.wmsrtot2 is null or np.waisrtot is null or np.trlb is null or np.flucfl is null
		THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot2=888 or np.waisrtot=888 or np.trlb=888 or np.flucfl=888 THEN CAST(888 as float)
		ELSE 100+(15*(((np.wmsrtot2 - coefs2.mu_wmsrtot2_cu)/coefs2.sigma_wmsrtot2_cu +
	          (np.waisrtot - coefs2.mu_waisrtot_cu)/coefs2.sigma_waisrtot_cu +
			  (np.ttotal - coefs2.mu_ttotal_cu)/coefs2.sigma_ttotal_cu +
			  -1*(np.trlb - coefs2.mu_trlb_cu)/coefs2.sigma_trlb_cu +
			  (np.flucfl - coefs2.mu_flucfl_cu)/coefs2.sigma_flucfl_cu)/5 - coefs2.mu_pacc5_cfl_cu)/coefs2.sigma_pacc5_cfl_cu) END
	as std_pacc5_cfl,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot = 999 or np.bvmttot = '999' or 
			np.ttotal is null or np.wmsrtot is null or np.bvmttot is null THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot=888 or np.bvmttot='888' THEN CAST(888 as float)
		ELSE ((np.ttotal - coefs2.mu_ttotal)/coefs2.sigma_ttotal + (np.wmsrtot - coefs2.mu_wmsrtot)/coefs2.sigma_wmsrtot + 
			(CAST(np.bvmttot as float) - coefs2.mu_bvmttot)/coefs2.sigma_bvmttot)/3 END
	as cs_imm_lrn_old,
	CASE WHEN np.drraw = 999 or np.wmsrtot2 = 999 or np.bvmtdel = '999' or 
			np.drraw is null or np.wmsrtot2 is null or np.bvmtdel is null THEN CAST(999 as float)
		WHEN np.drraw=888 or np.wmsrtot2=888 or np.bvmtdel='888' THEN CAST(888 as float)
		ELSE ((np.drraw - coefs2.mu_drraw)/coefs2.sigma_drraw + (np.wmsrtot2 - coefs2.mu_wmsrtot2)/coefs2.sigma_wmsrtot2 + 
			(CAST(np.bvmtdel as float) - coefs2.mu_bvmtdel)/coefs2.sigma_bvmtdel)/3 END
	as cs_del_rec_old,
	CASE WHEN np.trlb = 999 or np.stroocw = 999 or np.stroocwe = 999 np.waisrtot = 999 or 
			np.trlb is null or np.stroocw is null or np.stroocwe is null or np.waisrtot is null THEN CAST(999 as float)
		WHEN np.trlb=888 or np.stroocw=888 or np.stroocwe=888 or np.waisrtot=888 THEN CAST(888 as float)
		ELSE (-1*((np.trlb - coefs2.mu_trlb)/coefs2.sigma_trlb) + (np.stroocw - np.stroocwe - coefs2.mu_StroopCW_Cor)/coefs2.sigma_StroopCW_Cor + (np.waisrtot - coefs2.mu_waisrtot)/coefs2.sigma_waisrtot)/3 END
	as cs_exec_fn_old,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot2 = 999 or np.waisrtot = 999 or 
			np.ttotal is null or np.wmsrtot2 is null or np.waisrtot is null THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot2=888 or np.waisrtot=888 THEN CAST(888 as float)
		ELSE ((np.ttotal - coefs2.mu_ttotal)/coefs2.sigma_ttotal + (np.wmsrtot2 - coefs2.mu_wmsrtot2)/coefs2.sigma_wmsrtot2 + (np.waisrtot - coefs2.mu_waisrtot)/coefs2.sigma_waisrtot)/3 END
	as pacc3_old,
	CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot2 = 999 or np.waisrtot = 999 or np.mmsetot = 999 or
			np.ttotal is null or np.wmsrtot2 is null or np.waisrtot is null or np.mmsetot is null THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot2=888 or np.waisrtot=888 or np.mmsetot=888 THEN CAST(888 as float)
		ELSE ((np.ttotal - coefs2.mu_ttotal)/coefs2.sigma_ttotal + (np.wmsrtot2 - coefs2.mu_wmsrtot2)/coefs2.sigma_wmsrtot2 + (np.waisrtot - coefs2.mu_waisrtot)/coefs2.sigma_waisrtot + (np.mmsetot - coefs2.mu_mmsetot)/coefs2.sigma_mmsetot)/4 END
	as pacc4_old,
CASE WHEN np.ttotal = 999 or np.ttotal = -999 or np.wmsrtot2 = 999 or np.waisrtot = 999 or np.flucfl = 999 or
			np.ttotal is null or np.wmsrtot2 is null or np.waisrtot is null or np.flucfl is null THEN CAST(999 as float)
		WHEN np.ttotal=888 or np.wmsrtot2=888 or np.waisrtot=888 or np.flucfl=888 THEN CAST(888 as float)
		ELSE ((np.ttotal - coefs2.mu_ttotal)/coefs2.sigma_ttotal + (np.wmsrtot2 - coefs2.mu_wmsrtot2)/coefs2.sigma_wmsrtot2 + (np.waisrtot - coefs2.mu_waisrtot)/coefs2.sigma_waisrtot + (np.flucfl - coefs2.mu_flucfl)/coefs2.sigma_flucfl)/4 END
	as pacc4_cfl_old

FROM         dbo.NeuropsychScores as np
		CROSS JOIN dbo.CompositeScoreCoefs as coefs2


---------------------------------------------------------------------------------------------

Notes:

   1.  Needed to substitute double-quotes for single-quotes.

   2.  No "np.stroopcw_cor" variable.  Changed to
       "np.stroocw".

   3.  Some variables missing "coefs2."prefix.

   4.  References to "z_imm_lrn" ... "z_pacc5_cfl" are subsequent
       to previous definitions.
