I have a table with
Table name TB1 mpeFromWHId mpeToStoreList 8 16,18,24
and Table tb2
are the codes of the comma separated storeid
nlid nlcode 16 ncl 18 mcl 24 dcl
I need a query that will result in
col1 Col2 8 ncl,mcl,dcl
I have a table with
Table name TB1 mpeFromWHId mpeToStoreList 8 16,18,24
and Table tb2
are the codes of the comma separated storeid
nlid nlcode 16 ncl 18 mcl 24 dcl
I need a query that will result in
col1 Col2 8 ncl,mcl,dcl
If you don't want to create a user function, you can do like this:
First you need a function to parse comma delimited string into table, you can use this (found [here])1:
Then you can use something like this (but there are many more options off course):