KirillToronto
Programmer
I have a table with 2 columns called Department and Order Num,
Order Department
1 Dept01
1 Dept02
1 Dept03
1 Dept04
1 Dept05
I need to have a new table with prev dept in the thrord column like
Order Department Prev.Dept
1 Dept01 START
1 Dept02 Dept01
1 Dept03 Dept02
1 Dept04 Dept03
1 Dept05 Dept04
I am using SQL2000. Any help please
Order Department
1 Dept01
1 Dept02
1 Dept03
1 Dept04
1 Dept05
I need to have a new table with prev dept in the thrord column like
Order Department Prev.Dept
1 Dept01 START
1 Dept02 Dept01
1 Dept03 Dept02
1 Dept04 Dept03
1 Dept05 Dept04
I am using SQL2000. Any help please