@id_race_next

Type: Integer

Description:
Contains the ID of the next race in the same meeting. If there is no next race, zero is returned.

Example:
dbo.fn_TradeCount(@id_race_next, 0, 0, 'O', 0)
returns the count in the next race of trades of all horses of all strategies in a status 'O' (open).