Старый 11.06.2007, 15:15   #18 (permalink)
bdv
Старожил
 
Регистрация: 11.04.2005
Сообщений: 773
Цитата:
Сообщение от alles писал вс, 10 июня 2007 14:07
Посмотрите свои доски, ну 1к,этого достаточно для статистики. Сколько раз на доске было 3of a kind? Должно быть около 20. Уверен не насчитаете и 10!!! Это только один из пробоев...много их.
Насчитал.
Код:
select count(*) from game where river is not null
Итог: 199095
Код:
select count(*)
from game
where river is not null and
(
(rtrim(flop_1,'hdcs')=rtrim(flop_2,'hdcs') and rtrim(flop_1,'hdcs')=rtrim(flop_3,'hdcs')) or
(rtrim(flop_1,'hdcs')=rtrim(flop_2,'hdcs') and rtrim(flop_1,'hdcs')=rtrim(turn,'hdcs')) or
(rtrim(flop_1,'hdcs')=rtrim(flop_2,'hdcs') and rtrim(flop_1,'hdcs')=rtrim(river,'hdcs')) or
(rtrim(flop_1,'hdcs')=rtrim(flop_3,'hdcs') and rtrim(flop_1,'hdcs')=rtrim(turn,'hdcs')) or
(rtrim(flop_1,'hdcs')=rtrim(flop_3,'hdcs') and rtrim(flop_1,'hdcs')=rtrim(river,'hdcs')) or
(rtrim(flop_1,'hdcs')=rtrim(turn,'hdcs') and rtrim(flop_1,'hdcs')=rtrim(river,'hdcs')) or
(rtrim(flop_2,'hdcs')=rtrim(flop_3,'hdcs') and rtrim(flop_2,'hdcs')=rtrim(turn,'hdcs')) or
(rtrim(flop_2,'hdcs')=rtrim(flop_3,'hdcs') and rtrim(flop_2,'hdcs')=rtrim(river,'hdcs')) or
(rtrim(flop_2,'hdcs')=rtrim(turn,'hdcs') and rtrim(flop_2,'hdcs')=rtrim(river,'hdcs')) or
(rtrim(flop_3,'hdcs')=rtrim(turn,'hdcs') and rtrim(flop_3,'hdcs')=rtrim(river,'hdcs'))
)
Итог: 4315 (2.16%)
__________________
get rich or die tryin\'
bdv вне форума