I am having problems with queries in SQL Server 2008, I searched the Internet, but did not find anything or did not give me any ideas on how to do this.
Using the Northwind database, I need to query the OrderDetails table and select OrderID and UnitPrice, showing something like this,
OrderID - UnitPrice ------------------------ 10248 - 14.00 10248 - 9.80 10248 - 34.80 10249 - 18.60
The result should be:
OrderID - UnitPrice ------------------------ 10248 - 14.00 10248 - 23.80 10248 - 58.6 10249 - 18.60
source share