Calculating Average Values in ZN Framework
576
If you would like to get averages of a column with ZN Framework all you need as Query is:
 
Query:
DB::select('ColumnName')->avg('Price')->get('TableName')->value();


Here you can also manipulate it by combining with other queries like "where" or "joins" for more targeted usage.

If you are looking for consultation, fill the Contact Form below.
Our virtues and our failings are inseparable, like force and matter. When they separate, man is no more. Nikola Tesla
Haluk YAMANER - Personal
Contact Form
You must complete Security Verification to submit your form.