20 %MACRO combineddataset;
23 create table work.combineddataset as
25 ,Customer.CustomerNumber
26 ,Contracts.ContractNumber
28 from work.Customer left join work.CustomerContracts
29 on Customer.CustomerNumber=CustomerContracts.CustomerNumber
30 left join work.Contracts on CustomerContracts.ContractNumber=Contracts.ContractNumber;
33 %MEND combineddataset;