THINGS thingnum description 1 something 2 something else 3 yet another thing DOCS docnum docdescript 1 "important doc" 2 "more important" 3 "whatever" THINGDOCS thingkey dockey 1 1 1 2 2 3 3 2 3 3I want a query THINGSWITHDOCS that would look like:
thingnum docstring 1 "important doc/more important" 2 "whatever" 3 "more important/whatever"The Help says that you cannot assume anything about work areas and aliases when you use a UDF in a query and I'm sure that it is part of my problem. So, my attempts to do SELECT thingnum, getdocs(thingnum) FROM things are not working, because getdocs wants to open another work area. When I join docs and thingdocs to things with various JOIN, LEFT JOIN, or FULL JOIN, I get duplicates or blank doc strings or only the first item in the docstring.