I'm back!!!! MSSql syntax for the like statement allows this statement to give me results for all inv_id2 that are
5040,5050,5060 & excludes the others.
But informix sql ignores the bracketed parameter - I can't imagine that I have to make a case statement for each iteration but every SQL resource I own indicate that the brackets should work but it doesn't.
SELECT
Distinct inv_id3,
inv_id3||02,
Case when inv_id2 LIKE "%00%" then "Length" else "fit" END,
Case when inv_id2 like "50[4-6]%" then "Width" else "Size" END
FROM inv Inner Join ecat_item_size2 ON inv_id3=inv_id
Can someone enlighten me as to the hidden syntax?
Thanks
Gina
5040,5050,5060 & excludes the others.
But informix sql ignores the bracketed parameter - I can't imagine that I have to make a case statement for each iteration but every SQL resource I own indicate that the brackets should work but it doesn't.
SELECT
Distinct inv_id3,
inv_id3||02,
Case when inv_id2 LIKE "%00%" then "Length" else "fit" END,
Case when inv_id2 like "50[4-6]%" then "Width" else "Size" END
FROM inv Inner Join ecat_item_size2 ON inv_id3=inv_id
Can someone enlighten me as to the hidden syntax?
Thanks
Gina