Forum Replies Created

Viewing 15 posts - 16 through 30 (of 63 total)

  • RE: Cumulative Balance calculation

    J Livingston SQL (1/21/2016)


    ok...which bit?

    is it the "CASE" statement or the "SUM OVER".....or ?

    This part

    "SUM OVER" & "ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW"

    Thanks!

  • RE: Cumulative Balance calculation

    yb751 (1/21/2016)


    ssc_san (1/21/2016)


    Thank you yb751!

    The real data has dates, but I wanted to simplify it.

    Thank you!

    At least you provided the sample data which is more than some. 😉

    Good to know...

  • RE: Cumulative Balance calculation

    J Livingston SQL (1/21/2016)


    ssc_san (1/21/2016)


    Thank you J Livingston SQL! It worked.

    thanks...but do you understand how?

    I'm trying to, but it would help If you could provide a brief explanation.

    Thanks much!

  • RE: Cumulative Balance calculation

    Thank you yb751!

    The real data has dates, but I wanted to simplify it.

    Thank you!

  • RE: Cumulative Balance calculation

    Thank you J Livingston SQL! It worked.

  • RE: Arrival and Depart location query help.

    Thanks you Luis C and Micky! Both the solutions worked like charm.

  • RE: Arrival and Depart location query help.

    Hi, Thanks for the reply.

    Sorry, forgot to mention, there is a seq number.

    CREATE TABLE #xy123

    (

    tktamt MONEY,

    ...

  • RE: String splitter function

    Thanks for the reply Abu Dina and Ed Wagner!

    We have SQL sever 2000 database, I am not sure If I can use this in SQL server 2000?

    Thanks!

  • RE: Change case logic to boolean logic

    Okay Lynn Pettis, Actually I want to code for the 'O' part of the case statement and populate a flag, that is the reason, I was trying to re-write it...

  • RE: Change case logic to boolean logic

    Yes Lynn Pettis.

  • RE: Change case logic to boolean logic

    Thanks for the reply Lynn Pettis.

    There are two records with a value of '1' for column c1, t1 value for those records is null where as t2 has values as...

  • RE: Query help

    ColdCoffee (7/17/2012)


    ssc_san (7/17/2012)


    ColdCoffee (7/17/2012)


    ssc_san (7/17/2012)


    We have a issue here, they may add other adjustment periods in the future, so it is not a fixed set of periods.

    Meaning, 0,9,13,14,16 will...

  • RE: Query help

    ColdCoffee (7/17/2012)


    ssc_san (7/17/2012)


    We have a issue here, they may add other adjustment periods in the future, so it is not a fixed set of periods.

    Meaning, 0,9,13,14,16 will have other...

  • RE: Query help

    Thanks for the query Coldcoffee.

    We have a issue here, they may add other adjustment periods in the future, so it is not a fixed set of periods.

    Any other method...

  • RE: Aggregate

    Try this:

    DECLARE @testagg TABLE

    (

    id VARCHAR(10),

    nm VARCHAR(20),

    amt INT...

Viewing 15 posts - 16 through 30 (of 63 total)