I’d like to do something along the lines of
select * from table where column < myValue,
and myValue is obtained by
select myValue from table where id = @id --there should only be one.
How can I combine these?
I tried where in, but with no success.
What about something like this?