hello how do i get the max value of scores, where column ID range starts at 3-5 example table
I want to get the max value of scores, where column ID ranging from 3-5 , please help,
what I have done so far:
$max_scores_table= DB::table('scores_table')
->where('id', '>', 2)
->max('score');
another problem is when i have a decimal points in the table when I used the max() function it gets the ID=5, which has a Score of 4.5, instead of ID=4 with a value of 4.6, tnx in advance