SQL Mode UDMs-
First, the racing surfaces:
D - Outer main dirt course
d - Inner dirt course
O - Off the Turf (race carded for the turf but run on a dirt course)
T - Outer or main turf course
t - Inner turf course
Next, from the Table Scema, these are the values for the intsurface field in the starterhistory table:
Field Name Data Type Description --------------------- ------------- ---------------------------------------------- intsurface number integer surface type (1=D, 2=d, 3=O, 4=T, 5=t)
Q. So how do you make a SQL Mode UDM avoid off the turf races?
A. It's easier to accomplish in SQL Mode than it is in playlist file mode because in SQL Mode you can reference values in the intsurface field directly. Basically, you just add a line to the sql expression driving the UDM referencing the appropriate intsurface field value.
Here are 4 examples:
1. AND INTSURFACE <> 3
2. AND NOT INTSURFACE = 3
3. AND INTSURFACE < 3 AND INTSURFACE > 3
4. AND INTSURFACE <= 2 AND INTSURFACE >= 4
So if you have an all purpose SQL Mode UDM, one that has no restriction for surface, and you want it to avoid off the turf races - adding the following line to the expression driving the UDM should do the trick:
AND NOT INTSURFACE = 3
-jp
.
~Edited by: jeff on: 7/24/2012 at: 12:48:19 PM~
|