I have table consisting of these fields:
id | date_from | date_to | price -------------------------------------------- CK1 22-12-2012 29-
select id, date_from, date_to, min(price) from table group by id, date_from, date_to