Skip to content
Advertisement

Using SQL result as a filter for another query

Here’s my code and there’s a thousand transaction_no result. Which is I have to use as a filter for another code with the same table.

Advertisement

Answer

You could use in, if you want to filter on the transactions:

If you want all rows for transactions that have the specified item, you can also use qualify:

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement