Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)

  • RE: How to find nth best scores

    Is this what you are after?

    CREATE TABLE #Scores(

    TID int identity(1,1),--PK

    ID int,

    Score int)

    INSERT INTO #Scores(ID,Score) SELECT 1,10

    INSERT INTO #Scores(ID,Score) SELECT 2,5

    INSERT INTO #Scores(ID,Score) SELECT 2,15

    INSERT INTO #Scores(ID,Score) SELECT 2,25

    INSERT INTO #Scores(ID,Score)...

  • RE: Cartesian product of 2 tables + update a column

    To Elaborate...

    I want to create a stored procedure or function that would create a temp table from CROSSJOIN or INNER JOIN and a WHERE of two tables. Then, on that...

Viewing 2 posts - 1 through 2 (of 2 total)