Forum Replies Created

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

  • RE: Chart control limitations

    Oh I neglected to say I'm using Reporting Services for SQLServer 2005.

    Thanks

  • RE: Looping in T-SQL

    WITH transactionsCTE

    AS (SELECT

    factoryID

    ,ROW_NUMBER() OVER (PARTITION BY factoryID ORDER BY transactionDate) AS rn

    ,transactionField1

    ,transactionField2

    ,transactionField3

    FROM

    transactionsTable)

    INSERT tblTop6

    SELECT

    factoryID

    ,transactionField1

    ,transactionField2

    ,transactionField3

    FROM

    transactionsCTE

    WHERE

    rn < 7

    This does the job for me, thanks guys!

  • RE: Looping in T-SQL

    OK I made it sound very simple.

    My data looks like this in tblTransactions (all hypothetical) 🙂

    Factory Item PurchasePeriod Spend

    =============================

    Fact1 101...

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