I apologize for the terrible topic name, and for asking a question that I could Google for, if I could just think of the right search terms to use...
I'll preface this question with a disclaimer that I in no way consider myself an expert with MSSQL or databases. I have no formal training on the topic, and everything I know has been learned through Googling my way though things. I apologize if my question is confusing.
I need a query that will go through a table and sum the values in a given column where the values in another column match. Example data set and desired result set are below. What would be a good way to accomplish this?
UID Part# Qty
1 part1 15
2 part1 5
3 part2 18
4 part2 26
Part# Qty
part1 20
part2 44