Created
August 31, 2008 01:42
-
-
Save bryanveloso/8158 to your computer and use it in GitHub Desktop.
Selects the number of cash points or kafra points an account has.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT SUM(CAST(`value`/100 AS DECIMAL(7,2))) FROM `global_reg_value` WHERE (`str` LIKE '#CASHPOINTS' || `str` LIKE '#KAFRAPOINTS') AND `type` = '2' AND `account_id` = 'THEIR_ACCOUNT_ID'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment