Page 1 of 1

Total number of hands in database

PostPosted: Thu Jan 31, 2008 1:41 am
by DrewOnTilt
Is there anywhere that I can see the total number of hands that are in a database? If PT3 doesn't display this anywhere then what SQL command should I use in pgAdmin III?

I need to compare my newly created PT3 database to an older database to ensure that everything imported correctly.

Re: Total number of hands in database

PostPosted: Thu Jan 31, 2008 2:41 am
by APerfect10
[codedh3]SELECT
count(*) as total_hands
FROM
holdem_hand_summary[/codedh3]

Re: Total number of hands in database

PostPosted: Thu Jan 31, 2008 9:34 am
by omaha
Any way for us computertards to find this (very important -hint hint) stat yet?

Re: Total number of hands in database

PostPosted: Thu Jan 31, 2008 10:38 am
by Josh
Not yet, it will be added when the summary tab gets put back in.

Re: Total number of hands in database

PostPosted: Thu Jan 31, 2008 1:34 pm
by ozora tsubasa
[quote="omaha"585]Any way for us computertards to find this (very important -hint hint) stat yet?[/quote585]

It's quite easy actually. Open up pgadmin, connect to your database. Then right click on your listed PT3 database and click "Create Script"

Then paste the above script and hit "execute query"

[img585]http://www.karidegiliz.biz/publicpoker/2p248.jpg[/img585]

Re: Total number of hands in database

PostPosted: Wed Feb 06, 2008 12:51 am
by _dave_
[quote="APerfect10"kke][codekke]SELECT
count(*) as total_hands
FROM
holdem_hand_summary[/codekke][/quotekke]

is this not a bit nasty?

aside from that is misses donkaments too :(

[codekke]SELECT
count(id_hand) as total_hands
FROM
holdem_hand_summary[/codekke]

or

[codekke]SELECT
count(id_hand) as total_hands
FROM
tourney_holdem_hand_summary[/codekke]

?

Re: Total number of hands in database

PostPosted: Wed Feb 06, 2008 3:34 am
by APerfect10
[quotec8x]is this not a bit nasty?[/quotec8x]

From my MySQL days where count(*) is actually faster than count(field)...

highfalutin