Greetins,
I am trying to build a query that displays a value based on the values of a couple of fields.
Similar to:
iif([Material_Type] = "Bulk Materials",iif([Material_ID] like "PVV*","Bulk Pipe",iif([Material_Type] = "Bulk Materials",iif([Material_Type] Like "FBB*","Bulk Hanger")) as "Bulk Hanger"
Having troubles converting this to sequal. I have:
DECODE (dv.Material_Type,"Bulk Materials",Decode(instr(dv.Material_ID,Not like 'P',1,1),decode(instr(dv.Material_ID,<>'FBB',1,3),"Y"))) as 'Bulk Hanger'
As you can see I tried 'Not Like' and '<>', I've even tried '!='. None seem to work, keep getting missing operator, or invalid SQL statement.
Can anyone help?
I am trying to build a query that displays a value based on the values of a couple of fields.
Similar to:
iif([Material_Type] = "Bulk Materials",iif([Material_ID] like "PVV*","Bulk Pipe",iif([Material_Type] = "Bulk Materials",iif([Material_Type] Like "FBB*","Bulk Hanger")) as "Bulk Hanger"
Having troubles converting this to sequal. I have:
DECODE (dv.Material_Type,"Bulk Materials",Decode(instr(dv.Material_ID,Not like 'P',1,1),decode(instr(dv.Material_ID,<>'FBB',1,3),"Y"))) as 'Bulk Hanger'
As you can see I tried 'Not Like' and '<>', I've even tried '!='. None seem to work, keep getting missing operator, or invalid SQL statement.
Can anyone help?