If I have a stored procedures that takes a ‘id‘ and return ‘age‘ . suppose its name is getAge
and I want to use this stored procedure to get age , given the id
If I have a query such this :
select id, age where age > ( getAge id)
How to do that ?
Assuming you are using SQL Server