I have a fairly complicated parameterized query written in labkey sql. this query accepts 2 numeric parameters. There are 2 ways this query is used.
1) run directly by user, where the user inputs the params (working fine)
2) we have a second table where we have cached expected values for PTIDs. it would be really convenient to join this table to my parameterized query, in order to apply these default values to that query. i dont see any way that this would work though. is there any way to accomplish this?
The alternative is to duplicate my complicated SQL query into a parameterized one and a non-parameterized one. just trying to avoid that.
Thanks in advance for any help. |