pordonez
6 months ago

Laravel query

Posted 6 months ago by pordonez

Hello guys, i have a record on my database something like this

--------------------
Name|Count
--------------------
Item 1 | 5
Item 2 | 10
Item 3 | 4
Item 1 |4
Item 3 | 5
--------------------

now what i want to do with my query is this

Item 1 - 9
Item 2 - 10
Item 3 - 9

can anyone help me please?.

Please sign in or create an account to participate in this conversation.