on 08-31-2020 5:37 AM
Hi
Select
(case
when substring($[RDR1.U_Code], 1,5) = 'U_CMax then Select 'U_Max' from Oitm where OITM.ItemCode = $[RDR1.ITEMCODE]
when substring($[RDR1.U_Code], 1,5) = 'U_CApple then Select 'U_Apple' from Oitm where OITM.ItemCode = $[RDR1.ITEMCODE]
End)
Thanks
Are you serious?
danishs.a. is showing you the problem:
'U_CMax then Select 'U_Max'
'U_CApple then Select 'U_Apple'
Besides missing a single quote on each line, the sub queries should each separately be enclosed in brackets:
'U_CMax' then (Select 'U_Max')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I have below code but still not working
Select
(case
when substring($[RDR1.U_Code], 1,6) = 'U_CMax' then (Select U_Max from Oitm where OITM.ItemCode = $[RDR1.ITEMCODE])
when substring($[RDR1.U_Code], 1,6) = 'U_CApp' then (Select U_Apple from Oitm where OITM.ItemCode = $[RDR1.ITEMCODE])
End)
Thanks
the separate cases must no themselves be enclosed in brackets:
Select
case
when substring($[RDR1.U_Code], 1,6) = 'U_CMax' then (select U_Max
from OITM
where OITM.ItemCode = $[RDR1.ITEMCODE])
when substring($[RDR1.U_Code], 1,6) = 'U_CApp' then (select U_Apple
from OITM
where OITM.ItemCode = $[RDR1.ITEMCODE])
End
not understand
what is this ..UDF or TEXT
'U_CMax then Select 'U_Max'
'U_CApple then Select 'U_Apple'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
U_Max & U_Apple are the UDF fields in Item Master
U_Code is the Udf in Rdr1
Select
(case
when substring($[RDR1.U_Code], 1,6) = 'U_CMax then Select 'U_Max' from Oitm where OITM.ItemCode = $[RDR1.ITEMCODE]
when substring($[RDR1.U_Code], 1,6) = 'U_CApp then Select 'U_Apple' from Oitm where OITM.ItemCode = $[RDR1.ITEMCODE]
End)
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.