Forum Replies Created

Viewing 5 posts - 16 through 20 (of 20 total)

  • RE: Putting results into strings...

    Yep, this is the solution I came up with as well, but can anyone tell me why the "ORDER BY LEN(CtrlCode)" in my original post does not work??? Would prefer...

  • RE: Putting results into strings...

    Well no, not exactly the same result but the SQL I am running now looks like:

     

    DECLARE @WorkingString varchar(100)

    CREATE TABLE #TempControls(

     CtrlCode varchar(3)

    )

    INSERT INTO #TempControls

    VALUES ('T1')

    INSERT INTO #TempControls

    VALUES ('T2')

    INSERT INTO #TempControls

    VALUES ('T4')

    INSERT...

  • RE: Putting results into strings...

    True, but I still get the same result...

  • RE: Average Cost

    I would create a view that records customer ID, item ID and the average cost of their last 5 orders (Cust_ID, ItemID, AvgLast5Orders) using similar syntax to what you have in...

  • RE: collation Urgent

    Each column has it's collation set individually so try:

    declare @UserSegment table (UserID varchar(20) COLLATE Latin1_General_CI_AS, SegmentID varchar(20) COLLATE Latin1_General_CI_AS)

    Just tried it in QA... works good as!

    Taa,

    B

Viewing 5 posts - 16 through 20 (of 20 total)