Get scalar value from table | Microsoft Community Hub
Tim, You're looking fortoscalar(). For a slightly more advanced example of how to use it (together with makeset() and in()), check out the last section of ouraggregations tutorial. To pseudocode your example, yo