Hey I have a table in my Database like this that you see below. I want to select "DocumentNumber" where they have similar values. You see that there is three 10006513 values
Ducumentnumber requestType price quantity sum of price
10006513 1500
10006513 2500
10006513 7500
I want to select them and write e.g: quantity = 3 and I calculate sum of price of them. I want a good query in sql server 2008