Forum Replies Created

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

  • RE: Getting Most Recent Date Records

    This CTE/Query seems to be giving me the reults I am looking for. Thank you for your assitance and guidance.

    With HR_CTE (seq, EmployeeId, Name, Department, JobTitle, EffectiveDate, SocSecNbr, Address, City,...

  • RE: Getting Most Recent Date Records

    Evil Kraig F (12/7/2011)


    SQLRNNR (12/7/2011)


    try using a cte and a row_number() ranking function.

    Put your query in the cte with that ranking function, then select from the cte where rownum=1

    I would...

  • RE: Getting Most Recent Date Records

    Burninator (12/7/2011)


    If you are looking just to find the max effective date for each person and type of job, just use the max and group by the rest:

    SELECT DISTINCT

    ...

  • RE: Getting Most Recent Date Records

    Thanks for the advice.

    I have never used a CTE, so I will research their use and hash it out to see if I can get it working that way.

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