RE: table join with itself
From: milmus (anonymous_at_discussions.microsoft.com)
Date: 03/02/04
- Next message: Armando: "Re: can't compare a varchar properly using WHERE"
- Previous message: Eric Sabine: "Re: Question on choosing primary key; real or arbitrary"
- In reply to: anonymous_at_discussions.microsoft.com: "table join with itself"
- Next in thread: Joe Celko: "RE: table join with itself"
- Reply: Joe Celko: "RE: table join with itself"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 2 Mar 2004 12:36:06 -0800
Hi Rob,
i think you did not understand my problem. Therfore I will
post an example:
myTable
id | value
1 | 23
2 | 21
4 | 15
7 | 44
wishedResult
a.id | a.value | b.value (value of the record before)
1 | 23 | NULL
2 | 21 | 23
4 | 15 | 21
7 | 44 | 15
milmus
- Next message: Armando: "Re: can't compare a varchar properly using WHERE"
- Previous message: Eric Sabine: "Re: Question on choosing primary key; real or arbitrary"
- In reply to: anonymous_at_discussions.microsoft.com: "table join with itself"
- Next in thread: Joe Celko: "RE: table join with itself"
- Reply: Joe Celko: "RE: table join with itself"
- Messages sorted by: [ date ] [ thread ]