I am combinging two tables T1 & T2 they have customer numbers/Custno and quarter sales totals/qs
T1 contains data for the year 2010 T2 contains data from the year 2011SELECT NVL(T1.CustNo, T2.custno), T2.QS as 2011_QS, T1.QS as 2010_QS
FROM Table1 T1 FULL OUTER JOIN Table2 T2 ON T1.CustNo = T2.CustNo