I have a table(model) in my database like this:
Name|avarage|evaluation
Marco| 9.6 | 1
Marco| 9.3 | 2
Kevin | 8.8 | 1
Kevin | 9.4 | 2
So I need to get this data to show a table at the template in this way:
Name | eval1 | eval2
Marco | 9.6 | 9.3
Kevin | 8.8 | 9.4
How can I make the query in my view?