hgus393
Registered User.
- Local time
- Today, 17:42
- Joined
- Jan 27, 2009
- Messages
- 83
Hi,
Sorry for the title of the thread. What I am trying to do is the following
I have three columns
Name, Date, Number
What I need to do is find the difference in the number column where the Name is the same but the date is not ex:
Bob 2013-12-12 123
Bob 2013-12-15 456
Jane 2013-12-14 789
Jane 2013-12-25 987
So what I need to do is to get a result that is independent of date i.e.
Bob (456-123)
Jane (987 - 789)
Does anyone have clue how to do this in SQL?
Cheer
Bob
Sorry for the title of the thread. What I am trying to do is the following
I have three columns
Name, Date, Number
What I need to do is find the difference in the number column where the Name is the same but the date is not ex:
Bob 2013-12-12 123
Bob 2013-12-15 456
Jane 2013-12-14 789
Jane 2013-12-25 987
So what I need to do is to get a result that is independent of date i.e.
Bob (456-123)
Jane (987 - 789)
Does anyone have clue how to do this in SQL?
Cheer
Bob