I have multi dbs with same structure I want to loop on them to check this select statment
select scan1,scan2,scan3 from customers where ..............
the output would be database name if this select has records like that:
db1
db2
db3
and so on ...