Data required for Decision tree

Hi,

To make decision using the decision tree, Should we use the whole data or we can use the bifurcated data i.e test and train dataset to construct decision tree.
Thanks.