Query\QueryBuilder::select_sum
Selects the sum of a field from a query
Signature
public function select_sum(string
$field,
[boolean
$as = FALSE] )
Parameters
$field
—
string
$as
—
boolean
Returns
- Query_Builder
Defined by Interface
QueryBuilderInterface
Test Coverage
Information
- Coverage: 2/2 Lines (100%)
- Tests: 8
- Passed: 8 (100%)
Tests
- [ PASSED ] — MySQLQBTest::testSelectSum
- [ PASSED ] — MySQLQBTest::testSelectDistinct
- [ PASSED ] — PgSQLQBTest::testSelectSum
- [ PASSED ] — PgSQLQBTest::testSelectDistinct
- [ PASSED ] — SQLiteQBTest::testSelectSum
- [ PASSED ] — SQLiteQBTest::testSelectDistinct
- [ PASSED ] — FirebirdQBTest::testSelectSum
- [ PASSED ] — FirebirdQBTest::testSelectDistinct