Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

Re: Scripting help.

$
0
0

Use lookup_ext built-in function (right-click in Schema Out in your Query transform and select New Fuction Call..> Lookup Functions> lookup_ext).

  • Specify 1 conditions: Cabinet = Cabinet.
  • Specify 2 output columns: Company Code --> Correct Company Code and Outlet --> Correct Outlet.

Add a 2nd Query transform and map:

  • Correct Company Code to decode(Company Code = Correct Company Code and Outlet = Correct Outlet, null, Correct Company Code)
  • Correct Outlet to decode(Company Code = Correct Company Code and Outlet = Correct Outlet, null, Correct Outlet)
  • MatchId to decode(Company Code = Correct Company Code and Outlet = Correct Outlet, 'Y', 'N')

Viewing all articles
Browse latest Browse all 9091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>