14 lines
276 B
Plaintext
14 lines
276 B
Plaintext
begin
|
|
select distinct
|
|
Nat_TestName,
|
|
Nat_TestCode
|
|
|
|
from one_etl.mgm_header
|
|
join nat_test on Nat_TestCode = Mgm_HeaderNat_TestCode
|
|
and Nat_TestIsActive = 'Y'
|
|
and Nat_TestIsPrice = 'Y'
|
|
|
|
where Mgm_HeaderIsActive = 'Y' and Mgm_HeaderMgm_McuID = PID
|
|
order by Nat_TestCode;
|
|
|
|
end |