Hi everyone,
It's my first post here, hopefully I'm able to get some assistance. I will be upfront that I'm not 100% sure that PIVOT is what I need here, but I'm guessing...any input is greatly appreciated.
I've got a table that looks like this...
|+-------------+--------------+----------+|
|| METADATASET | NAME | VALUE ||
|+-------------+--------------+----------+|
|| 109398 | WO_NB | WOCAT08 ||
|| 109398 | ITEM_NB | 56741575 ||
|| 109398 | CONTAINER_NB | 2 ||
|+-------------+--------------+----------+|
I am writing a trigger that is being used to print labels for containers. I need to be able to select the container number(CONTAINER_NB) that matches the metadataset number of the work order(WO_NB), and item number(ITEM_NB).
Can someone help me with the best way to do this?