My table X has an object name and a manufacturer name, but I need to display them as an object identifier and a manufacturer identifier.
I wrote two connections to display them:
In the first, the identifier of the object is declared:
select T1.facilityID, t2.*
from lkuFacility t1 right join X t2 on t1.facilityName = t2.facility
and t1.siteCode = t2.siteID
order by siteid
The second shows the manufacturer ID:
select T1.manufacturerID, t2.*
from lkuManufacturer t1 right join X t2 on t1.manufacturerName = t2.manufacturer
order by manufacturerid
How can I put them in a single request to show an object identifier and a manufacturer identifier on one result screen?
source
share