Sum all the rows with same column value #1234
harshuchilzy
started this conversation in
Feature Requests
Replies: 1 comment 4 replies
-
Looking at a glance at that, you may benefit from some normalisation in your database if you haven't already E.g. ProductPurchase Supplier Then use relationships to link it all together. You can use the withSum and withCount methods in the builder method to get the additional information out. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any method to join / merge all rows with same values.
In real scenario, I have several products with different quantities as the database rows. I want to show them as one row with sum of quantities.
https://i.ibb.co/qmJXD8H/Screenshot-2023-05-26-at-3-30-31-PM.png
Beta Was this translation helpful? Give feedback.
All reactions