select distinct id_vendita, data from tabella.