Oxidation of either d-erythrose or d-threose with nitric acid gives

Oxidation of either d-erythrose or d-threose with nitric acid gives tartaric acid. In one case, the tartaric acid is optically active; in the other, it is optically inactive. How can these facts be used to assign stereochemical structures to erythrose and threose?