2
It is possible to make a query in all tables containing the same column their respective values?
For example, I have the Bank called SGE
, it has 230 tables, and all these tables have the column CodPRF
and I want the Query return all results in which the tables have the column with the value of CodPRF
being equal to 101.
I thought of something similar to this (just an example to see if it helps better understand the problem on your part):
SELECT TOP (1000) [ALL_Collums]
FROM [SGE_TESTE].[dbo].[ALL_Tables]
WHERE CODPRF = '101'