Forum Replies Created

Viewing 15 posts - 481 through 495 (of 608 total)

  • RE: Odd Audit Request

    Interesting responses..

    Thanks guys!

  • RE: Distinct one column

    Thankagain..

    what if I need to add a where clause to the above query

    Where l.branchoffice not in ('01','02')

  • RE: Distinct one column

    Thanks Dave!!!

    Thanks to the rest of you guys also!

    Good karma to you!

  • RE: Distinct one column

    Sorry Dave you are correct I meant to be on the 2005

    how do I do that calculation?

  • RE: Distinct one column

    SET ANSI_NULLS OFF

    GO

    SET QUOTED_IDENTIFIER OFF

    GO

    select l.loanid, l.branchoffice, l.AcquiredFrom,

    l.previouslnnum, b.lastname, b.firstmiddlename,

    p.addressline1, p.addressline2, p.city,

    p.state, p.zip, l.originalamt,

    s.primstat, p.appraisalvalue, l.glplan

    --FROM loan L, property P, borrower B, status s

    FROM loan L

    ...

  • RE: Distinct one column

    Okay..pretty sure I need the columns in the other tables

    I have no idea how to do that can you give me an example?

  • RE: Distinct one column

    That didn't work, here's the entire statment:

    SET ANSI_NULLS OFF

    GO

    SET QUOTED_IDENTIFIER OFF

    GO

    select distinct l.loanid, l.branchoffice, l.AcquiredFrom,

    l.previouslnnum, b.lastname, b.firstmiddlename,

    p.addressline1, p.addressline2, p.city,

    p.state, p.zip, l.originalamt,

    s.primstat, p.appraisalvalue, l.glplan

    --FROM loan L, property P, borrower B,...

  • RE: How do I

    Thanks man

  • RE: 4 table join - easy one for you guys

    Thanks Bro!!

  • RE: Set field length

    Thanks Lowell!

  • RE: Odd Audit Request

    Awesome

    THANKS GUYS

    GOOD KARMA TO YOU ALL!!

  • RE: Query out parameter

    I didn't see that...thank you..

    but when I remove the rem I get

    I get zero byte files!!!

    Can't understand why they are zero byte!

    here's the output:

    NULL

    Starting copy...

    NULL

    0 rows copied.

    Network packet size (bytes):...

  • RE: Query out parameter

    here's the whole proc -

    USE [MASTER]

    GO

    DECLARE@DBNVARCHAR(10)

    DECLARE@sqlNVARCHAR(4000)

    DECLARE@COMPNVARCHAR(75)

    DECLARE@YRSMALLINT

    DECLARE@MONTHTINYINT

    SELECT@YR=2009

    DECLARE DBS CURSOR FAST_FORWARD FOR

    SELECT LTRIM(RTRIM([NAME]))

    FROM SYS.[DATABASES]

    WHERE NAME NOT IN ('MASTER','MODEL','MSDB','TEMPDB','DYNAMICS','DYNAMICSGP_UTILITIES','LPB_GREATPLAINSUTILS','SETUP')

    ORDER BY NAME

    OPEN DBS

    FETCH NEXT FROM DBS INTO @DB

    WHILE @@FETCH_STATUS = 0

    BEGIN

    SELECT@COMP=SUBSTRING(LTRIM([CMPNYNAM]),1,2) + '_'...

  • RE: Max date from multiple accounts

    You rock

    Thank you sooo much

    Good karma to you and have a nice weekend.

  • RE: Max date from multiple accounts

    Thanks Mark..

    where do i put in the account numbers?

Viewing 15 posts - 481 through 495 (of 608 total)