Forum Replies Created

Viewing 3 posts - 1 through 4 (of 4 total)

  • RE: Is there a way to sort the table after records are inserted?

    select @mystring=REPLACE(@mystring,name,value) from @tab

    We don't sort tables. The entire relational world is based on the concept that absolutely no assumptions can ever be made on the physical order of...

    TommCatt
    In theory, there is no difference between theory and practice. In practice, there is.

  • RE: Help with sql statement to delete old records for user if multiple records found

    Here's two other ways of doing it. First, write a query returning the rows you want to keep:

    -- Query 1

    select *

    from #UserSession us

    where us.LastUpdated...

    TommCatt
    In theory, there is no difference between theory and practice. In practice, there is.

  • RE: Deleting Rows in a table..

    Here's one way not using analytics or outer apply. At first I used a CTE but I removed that to use an inline view instead even though CTE's were not...

    TommCatt
    In theory, there is no difference between theory and practice. In practice, there is.

Viewing 3 posts - 1 through 4 (of 4 total)