Hi - this is achieved by joining with historic races with hiistoric_runners using the race_id, so that meeting date (which is the date of the race) is used in the query and/or shown in the select statement.
There are several examples in the old manual (which can be downloaded at the smartform_resources page), but as an example, to retrieve summary results for all yesterday's cards, ordered by course, time and finish position you could use the following query:
> select meeting_date, scheduled_time, race_id, course, name, finish_position from historic_races_beta join historic_runners_beta using (race_id) where meeting_date=curdate()-1 order by course, scheduled_time, finish_position;