Forum Replies Created

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

  • RE: need help on running total problem (self-join, I assume)

    Try it out....

    select t1.sales_id, t1.cust_id, t1.sales_amt, sum(t2.sales_amt) as c from t_sales t1, t_sales t2

    where t1.sales_id >= t2.sales_id AND t1.cust_id = t2.cust_id

    group by t1.sales_id, t1.cust_id, t1.sales_amt

    order by t1.cust_id

  • RE: vtable

    See usage of SET ANSI_NULLS ON|OFF

  • RE: ANY

    I wonder if this one was to makeup the previous QotD:laugh:

  • RE: Cursors

    What does sp_decribe_cursor do? Has anyone seen such function or was it a typo :sick:?

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