Here is my query example.
select *
from employee as a
where 1=(select count(distinct(b.salary))
from employee as b
where a.salary<b.salary)
I want to know that how many times my outer query and inner query runs. Is there any method to handle a counter inside the query ? As in visual studio, we can watch the value of any variable at each iteration of loop, similarly can we see the result of outer and inner query at any step ? Is there any tool that is used for this purpose ? Any method ?
Thanks in Advance.