A 2dF survey of the Small Magellanic Cloud