• varunfilim (7/29/2010)


    Hi friends,

    I have a scenario where the table values are

    ID First Second

    162

    142

    122

    261

    241

    221

    From this table I want to generate a combination where Next ID values is max(previous ID) ie 3 and a combination of first and second which didnt come in the Previous combination, for eg

    3 6 2

    3 4 1

    3 2 2

    Can any solve this issue...help appreciated...

    Umm, why not: -

    3 6 2

    3 4 2

    3 2 2

    ??

    Just want to understand the actual requirement before I spend some time.


    Forever trying to learn
    My blog - http://www.cadavre.co.uk/
    For better, quicker answers on T-SQL questions, click on the following...http://www.sqlservercentral.com/articles/Best+Practices/61537/
    For better, quicker answers on SQL Server performance related questions, click on the following...http://www.sqlservercentral.com/articles/SQLServerCentral/66909/