Hi all, I have a requirement where I need to make a calculation that makes use of two value where each value is in a different row.
For example, if I have the following three columns I want the two rows that have the same ID and for the row that has the value 912 in the Ref column minus the number in the Value column from the number in the same column (Value) that has the same ID but has 911 in the Ref column.
(using SQL Server 2000)Code:ID Ref Value 2674198 911 5.01374 2674198 912 3.78280 2674199 911 3.61368 2674199 912 8.85212
Does anyone know how I might get started with this?
Thanks
Tryst








Bookmarks