• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

SQL help

ochadd

[H]ard|Gawd
2FA
Joined
May 9, 2008
Messages
1,469
So I've got a table that lists serial number, weight, and a pallet number

1234, 20, pallet1
1235, 20, pallet1
1236, 21, pallet1
1237, 20, pallet2
1238, 20, pallet2
1239, 25, pallet2

My goal is to have a query that returns the total weight of each pallet:
pallet1 = 61
pallet2 = 65

For some reason my brain can't figure this out today. Any help is appreciated.
 
Do you even need the group by? since you're summing weights for the pallets, you would only have 1 final entry for each pallet. Then again, I don't use SUM() much so I may be mistaken here.
 
I used the group by and it worked perfectly. Thanks for the help.
 
Back
Top