A chat with ChatGPT... Here's an example of a stored procedure that accepts table parameters for signed products and packages, and performs a merge operation on the product table for signed products that are in valid packages: Will need some work, but pretty good.