Quantcast
Viewing all articles
Browse latest Browse all 12963

How to join each row with other in the same table without repeating, please help

Hi,

I have a table say Adjustment having following data

Emp_Id                  Adjustment_id                      Date

1000101               1000300                               2014-02-12 00:00:00.000

1000101               1000301                               2014-02-12 00:00:00.000

1000101               1000302                               2014-02-12 00:00:00.000

1000101               1000303                               2014-02-12 00:00:00.000

 

 

1000102               1000302                               2014-02-12 00:00:00.000

1000102               1000303                               2014-02-12 00:00:00.000

1000102               1000304                               2014-02-12 00:00:00.000

 

And I want following records:

 

Emp_Id                  Adjustment_id     Adjustment_id1                    Date

1000101               1000300                1000301                               2014-02-12 00:00:00.000

1000101               1000300                1000302                               2014-02-12 00:00:00.000

1000101               1000300               1000303                               2014-02-12 00:00:00.000

1000101               1000301                1000302                               2014-02-12 00:00:00.000

1000101               1000301                1000303                               2014-02-12 00:00:00.000

1000101               1000302                1000303                               2014-02-12 00:00:00.000

 

 

1000102               1000302                1000303                               2014-02-12 00:00:00.000

1000102               1000302                1000304                               2014-02-12 00:00:00.000

1000102                    1000303                    1000304                                       2014-02-12 00:00:00.000



Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>