Merge branch 'master' of git://git.assembla.com/donoban-fpdb

This commit is contained in:
Worros 2011-02-21 10:36:54 +08:00
commit 04a49660bf
3 changed files with 369 additions and 310 deletions

View File

@ -2328,6 +2328,18 @@ class Sql:
end end
) )
end AS steals end AS steals
,case when sum(cast(hp.success_Steal as <signed>integer)) = 0 then -999
else 100.0 *
sum(cast(hp.success_Steal as <signed>integer))
/
sum(case hp.position
when 'S' then cast(hp.raisedFirstIn as <signed>integer)
when '0' then cast(hp.raisedFirstIn as <signed>integer)
when '1' then cast(hp.raisedFirstIn as <signed>integer)
else 0
end
)
end AS suc_steal
,100.0*sum(cast(hp.street1Seen as <signed>integer))/count(1) AS saw_f ,100.0*sum(cast(hp.street1Seen as <signed>integer))/count(1) AS saw_f
,100.0*sum(cast(hp.sawShowdown as <signed>integer))/count(1) AS sawsd ,100.0*sum(cast(hp.sawShowdown as <signed>integer))/count(1) AS sawsd
,case when sum(cast(hp.street1Seen as <signed>integer)) = 0 then -999 ,case when sum(cast(hp.street1Seen as <signed>integer)) = 0 then -999
@ -2458,6 +2470,18 @@ class Sql:
end end
) )
end AS steals end AS steals
,case when sum(cast(hp.success_Steal as <signed>integer)) = 0 then -999
else 100.0 *
sum(cast(hp.success_Steal as <signed>integer))
/
sum(case hp.position
when 'S' then cast(hp.raisedFirstIn as <signed>integer)
when '0' then cast(hp.raisedFirstIn as <signed>integer)
when '1' then cast(hp.raisedFirstIn as <signed>integer)
else 0
end
)
end AS suc_steal
,100.0*sum(cast(hp.street1Seen as <signed>integer))/count(1) AS saw_f ,100.0*sum(cast(hp.street1Seen as <signed>integer))/count(1) AS saw_f
,100.0*sum(cast(hp.sawShowdown as <signed>integer))/count(1) AS sawsd ,100.0*sum(cast(hp.sawShowdown as <signed>integer))/count(1) AS sawsd
,case when sum(cast(hp.street1Seen as <signed>integer)) = 0 then -999 ,case when sum(cast(hp.street1Seen as <signed>integer)) = 0 then -999
@ -2589,6 +2613,18 @@ class Sql:
end end
) )
end AS steals end AS steals
,case when sum(cast(hp.success_Steal as <signed>integer)) = 0 then -999
else 100.0 *
sum(cast(hp.success_Steal as <signed>integer))
/
sum(case hp.position
when 'S' then cast(hp.raisedFirstIn as <signed>integer)
when '0' then cast(hp.raisedFirstIn as <signed>integer)
when '1' then cast(hp.raisedFirstIn as <signed>integer)
else 0
end
)
end AS suc_steal
,100.0*sum(cast(hp.street1Seen as <signed>integer))/count(1) AS saw_f ,100.0*sum(cast(hp.street1Seen as <signed>integer))/count(1) AS saw_f
,100.0*sum(cast(hp.sawShowdown as <signed>integer))/count(1) AS sawsd ,100.0*sum(cast(hp.sawShowdown as <signed>integer))/count(1) AS sawsd
,case when sum(cast(hp.street1Seen as <signed>integer)) = 0 then -999 ,case when sum(cast(hp.street1Seen as <signed>integer)) = 0 then -999

Binary file not shown.

File diff suppressed because it is too large Load Diff