I have applied this SQL query in the calculation field in submission form but results is calculation error. Please look and help me
CASE
WHEN '[@cbParamVirtual3]'="Retwist Root Maintenanace"
THEN(
SELECT Retwist_RT_M_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Inter Lock Root Maintenance"
THEN(
SELECT Inter_RT_M_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Sister Lock Root Maintenance"
THEN(
SELECT Sister_RT_GR_Ret_M_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Crochet Root Maintenance"
THEN(
SELECT Cro_RT_M_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Wick Root Maintenance"
THEN(
SELECT Wick_Rt_M_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Loc Repairs(Thinning, Breakage, reattachment, removal,etc)"
THEN(
SELECT Loc_Repairs_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Loc Climbing / Converting"
THEN(
SELECT Loc_Comb_Conver_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Loc Styles"
THEN(
SELECT LocStyle_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Extending Locs"
THEN(
SELECT Exte_Locs_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Starter Coil/Finger/2 Strand Locs"
THEN(
SELECT Starter_Coil_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Loc Attachment/Reattchment"
THEN(
SELECT Loc_Attch_Reattch_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Starting WIck Locs"
THEN(
SELECT Start_Wick_Loc_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Temporary Locs"
THEN(
SELECT Tem_Locs_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="New Lock Extensions"
THEN(
SELECT New_Loc_Ext_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Instant Locs"
THEN(
SELECT InstantLocs_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Starting Sister Locs"
THEN(
SELECT Star_Sis_Locs_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
Mushigee2266
I have applied this SQL query in the calculation field in submission form but results is calculation error. Please look and help me
CASE
WHEN '[@cbParamVirtual3]'="Retwist Root Maintenanace"
THEN(
SELECT Retwist_RT_M_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Inter Lock Root Maintenance"
THEN(
SELECT Inter_RT_M_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Sister Lock Root Maintenance"
THEN(
SELECT Sister_RT_GR_Ret_M_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Crochet Root Maintenance"
THEN(
SELECT Cro_RT_M_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Wick Root Maintenance"
THEN(
SELECT Wick_Rt_M_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Loc Repairs(Thinning, Breakage, reattachment, removal,etc)"
THEN(
SELECT Loc_Repairs_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Loc Climbing / Converting"
THEN(
SELECT Loc_Comb_Conver_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Loc Styles"
THEN(
SELECT LocStyle_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Extending Locs"
THEN(
SELECT Exte_Locs_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Starter Coil/Finger/2 Strand Locs"
THEN(
SELECT Starter_Coil_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Loc Attachment/Reattchment"
THEN(
SELECT Loc_Attch_Reattch_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Starting WIck Locs"
THEN(
SELECT Start_Wick_Loc_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Temporary Locs"
THEN(
SELECT Tem_Locs_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="New Lock Extensions"
THEN(
SELECT New_Loc_Ext_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Instant Locs"
THEN(
SELECT InstantLocs_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
WHEN '[@cbParamVirtual3]'="Starting Sister Locs"
THEN(
SELECT Star_Sis_Locs_rate from LocticianServices where Loctician_ID=target.[@filed:Loctician_ID])
END
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.