Select M1.alias, F1.D11 As debitAmt from Master1 M1 inner join Folio1 F1 on F1.MasterCode = M1.Code order by M1.alias
I have the following resultset