I have a table with 2 column with numbers column1 and column2 that are populated with a couple 1000's fields.
I first run the following code:
select top (10) PERCENT
col1
from newtable
For this query I get 300 results, and based on this results I want to run a similar query as above but with my second table column
select top (10) PERCENT
col2
from "based on the results in the first query"
Is this possible in some way with nested query or something similar?