Forum Replies Created

Viewing 3 posts - 91 through 93 (of 93 total)

  • RE: LEN Command

    I just wasted loads of time trying to work out what was wrong with my code :crazy:

  • RE: Using T-sql in a store procedure

    whoops Or even

    select count(product) numPol, product, sum(Cast((order_total/100.00) As Decimal(12,2))) txnSale, CASE WHEN agentcode = '12345' THEN agentCode ELSE '66666' End AS Agent from vs

    where year(txndatetime) = 2004

    group by product, CASE WHEN...

  • RE: Using T-sql in a store procedure

    Why not do

    select count(product) numPol, product, sum(Cast((order_total/100.00) As Decimal(12,2))) txnSale, CASE WHEN agentcode = '12345' THEN agentCode ELSE '66666' End AS Agent from vs

    where year(txndatetime) = 2004

    group by product, agentCode

    order by...

Viewing 3 posts - 91 through 93 (of 93 total)