Hi everyone, I am trying to solve this problem.
I have a series of SELECT statements like below.
SELECT Name FROM Table1 WHERE Name LIKE '%Tom%'
SELECT Name From Table2 WHERE Name LIKE '%Tom%'
.
.
.
SELECT Name FROM Table10 WHERE Name Like '%Tom%'
Without using IF ELSE statements, is there any way I can terminate this script halfway and return the selection as soon as something is selected without having to execute the rest of the SELECT statements?
Cheers.