dbo.fn_GetPrice

Syntax:
dbo.fn_GetPrice(id_race, id_horse, bid_type, pos)

Output:
(decimal) Returns the price at a specified position. When pos=1 returns the best price.

Input parameters:
id_race (integer)Id of the market
id_horse (integer)Id of the runner
bid_type (string)'b'=back 'l'=lay
pos (integer)Position of the price to retrieve