I am performing the task of extracting data from both database tables, I have included the following query to achieve it.
The request in the stored procedure:
--Some query here...
LEFT OUTER JOIN aaa c
ON l.IDNo = c.LogonIDNo
INNER JOIN Data_00.dbo.yyy A
ON C.MacCusNo = A.Cus_no
LEFT OUTER JOIN abc T
ON A.xyz = T.bbb
Tables:
aaa : table of database Data_01
yyy : table of database Data_00
Is there a way to get data from both database tables without using 'Data_00.dbo.yyy' I want to use only yyyinstead.
source
share