If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > Poker Database running off Postgres

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-12-11, 05:57
Range Range is offline
Registered User
 
Join Date: Mar 2011
Posts: 28
Poker Database running off Postgres

Im looking to develop a stat off a potgres db whereby I can obatin the average stack of a certain type of player X. Does this code look correct?


if( val_icon = X, live_player_stat( str_player_name, 'amt_stack' ), 0 )
Reply With Quote
  #2 (permalink)  
Old 03-12-11, 07:23
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,408
No it doesn't because that is not valid SQL
Reply With Quote
  #3 (permalink)  
Old 03-20-11, 14:05
Range Range is offline
Registered User
 
Join Date: Mar 2011
Posts: 28
hmmm ok but does this look like SQL?

sum( if[holdem_hand_player_statistics.flg_blind_b = true AND holdem_hand_player_statistics.flg_blind_s AND holdem_hand_player_statistics.flg_vpip, 1, 0] )
Reply With Quote
  #4 (permalink)  
Old 03-20-11, 14:27
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,408
Still no valid SQL (square brackets not allowed, if not allowed)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On