14,503 questions
For example, you can do something like this:
if exists( select * from Table1 ) -- if the first query returns any row
update Table2 -- update a column in the second table
set SomeColumn = 'some value'
It depends on different aspects of your problem.