Forum Replies Created

Viewing 15 posts - 46 through 60 (of 424 total)

  • RE: How to join tables on PK/FK AND t1.field1 <> t2.field1

    i misinterpreted it and thought he wanted the the current status and the prior status (which is a requirement we often have to meet with history tables).

  • RE: How to join tables on PK/FK AND t1.field1 <> t2.field1

    Jeffrey Williams (12/3/2008)


    Is this what you are looking for?

    ;With history (regid, status, history_date, rn)

    As (Select reg_id

    ,status

    ...

  • RE: How to join tables on PK/FK AND t1.field1 <> t2.field1

    i think something like this will do it.

    select * from

    ( select t1.reg_id, t1.status, t2.status as prior_status, t2.history_date,

    row_number() over (partition by t2.reg_id order by t2.history_date desc ) as seq

    from table1...

  • RE: Finding Values With Numerous Columns

    Jason Akin (12/2/2008)


    This doesn't work for a LIKE condition, but for equalities in a small number of fields, you can use

    WHERE '411-555-1212' IN (HomePhone, WorkPhone, CellPhone, AltPhone)

    I've found it...

  • RE: Matrix Report Header Rows

    is this a 2005 matrix or a 2008 tablix report?

    if a 2005 matrix, your rectangle should fill the entire corner. then just size your heading boxes to your desired...

  • RE: Matrix Report Header Rows

    i don't quite follow you -- a screen shot would be helpful. in the meantime, you might want to try placing a rectangle in the corner. you can...

  • RE: Delete Script

    JKSQL (8/13/2008)


    you have to think larger scale on this. This is one proc that you can send any table in a relational DB and it deletes all data pertaining...

  • RE: Delete Script

    a good data modelling tool can generate a cascade delete trigger for you. so that proc/table seems to be reinventing a wheel.

  • RE: many possible input combinations

    append to #2: dynamic SQL. can be hard to read and more difficult to maintain.

  • RE: many possible input combinations

    i meant no offense. i'm just saying that sometimes there are no shortcuts or tricks. sometimes you gotta code what you gotta code even if it is laborious.

  • RE: Matrix problem - finding percentages based on Row group

    Mark Eytcheson (8/12/2008)


    Thanks Antonio,

    But eliminating that scope gives me the percentage of "Met" or "Not Met" for each month per the year for each user.

    Ex:

    ...

  • RE: Hide report parameter based on the value of another report parameter

    the report viewer inteface is more/less fixed. if you have a web app, you would have to create your own interface to collect the parameters and then send those...

  • RE: many possible input combinations

    i'm surprised that you're surprised by this. if you want to find people based on height, weight, age, gender, race, hair color, and eye color then you're going to...

  • RE: very urgent plzzzz

    here's faster alternative built on the attached function fListToVarchars(). (it has embedded less than characters and never displays properly.) put it in your common/global db:

    USE [global]

    GO

    SET ANSI_NULLS ON

    GO

    SET...

  • RE: Sorting Problem when table grouped

    move the table's sort expression(s) to the group's sort expression(s) then set the table's sort expression to properly sort the groups.

    table sort: stateName

    group sort: cityName, zipCode

Viewing 15 posts - 46 through 60 (of 424 total)