Developer technologies | Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
hi,
see screen-shot below:
Question
how is it possible to achieve the result in green from the data in orange colour. -
Try something like this:
select ID, book, dispatch, arrival, company, sum(p_value) as p_value, sum(a_value) as a_value
from OrangeTable
group by ID, book, dispatch, arrival, company