Using count or sum to validate radiobutton
I hope I'm asking this question in the right place. I have a Select statement (below) that is supposed to sum for me all the rows in the bank column that have a 1 in them. Is this statement doing this, and if it is can I pull that value into integer or string that I use for validation?
SELECT SUM(bank) FROM girls WHERE bank = 1