Forum Replies Created

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

  • RE: How to capture changes?

    Got it. Thanks

    Eralper (6/21/2010)


    Hi pcgm,

    My code responds to changes in model

    If you want to respond to changes in value column please change the WHERE clause as follows

    t1.value <> t2.value --t1.model...

  • RE: How to capture changes?

    Thanks. Got it. Basically add a column rownumber as identity.

    bteraberry (6/21/2010)


    declare @t_temp table (ID int, Value INT, Value2 VARCHAR(20))

    insert into @t_temp

    select 1, 5, 'Win32' union

    select 2, 5, 'Win32' union

    select 3,...

  • RE: How to capture changes?

    Hi, Erapler

    I used your solution, but did not get what I really want, did I miss anything? Thanks

    DECLARE @t TABLE(ID INT,Value INT,Model VARCHAR(50))

    INSERT INTO @t

    SELECT 1, 5, 'win32' UNION ALL

    SELECT...

  • RE: How to capture changes?

    Thanks Steve.

    This is what I got from abdshall@Technet, and it works:

    DECLARE @t TABLE(ID INT,Value INT,Model VARCHAR(50))

    INSERT INTO @t

    SELECT 1, 5, 'win32' UNION ALL

    SELECT 2, 5, 'win32' UNION ALL

    SELECT 3,...

  • RE: How to capture changes?

    Steve Jones - Editor (6/18/2010)


    Be careful about gaps in the identity column,

    Thanks Steve... This is exactly what I am thinking now. Let's say there's another column in the table

    ID Value...

  • RE: How to capture changes?

    Thanks!!! This is it.

    bteraberry (6/18/2010)


    declare @t_temp table (ID int, Value int)

    insert into @t_temp

    select 1, 5 union

    select 2, 5 union

    select 3, 7 union

    select 4, 7 union

    select 5, 7 union

    select 6, 7...

  • RE: How to capture changes?

    Thanks. It doesn't work though. The ID column is an identity column...

    Eugene Elutin (6/18/2010)


    try:

    select id

    from mytable

    group by id

    having min(val) != max(val)

  • RE: Ignore 0 in average

    Samuel Vella (5/19/2009)


    pc4ads (5/14/2009)


    Hi,

    I am new to SSRS2008. I wanna average a measure, non-zero values only, is there an easy way to do this?

    Thanks

    Are you querying a Cube or a...

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