Forum Replies Created

Viewing 15 posts - 1 through 15 (of 23 total)

  • RE: Complicated join...

    I am looking into this now to see if I can get it doing what I need... But right now it's pulling 4 rows, each one with a different provider...

  • RE: Complicated join...

    Ninja's_RGR'us (5/9/2011)


    No, your whole left join goes into a subquery for the column only.

    You need to correlate the base query with the column's subquery so that you only get 1...

  • RE: Complicated join...

    I just want to thank you guys... You have been a huge help.... I have been reading up a lot on this stuff, but to see my data and the...

  • RE: Complicated join...

    No need to loop. Look at my sample again.

    I know there is no need to loop.... Please look at my question again... It is about adding it to the...

  • RE: Complicated join...

    Bear with me... I know I'm a newbie... But would I just assemble the needed sql statement to assemble my string then join it in on the bottom with a...

  • RE: Complicated join...

    I've seen context like this, and was reading up on it... But can I join something like that into what I have above, or will I need to pull that...

  • RE: Complicated join...

    Ok...

    So now... Imagine we pull the recordset above... Then in a loop a have another select (the clientid of 11145 would normally equal the clientid from last select)

    SELECT Deductions.PolicyNumber1,Deductions.Amount,Deductions.ProviderID,

    Providers.Name,Deductions.GroupID,Providers.ProviderID...

  • RE: Complicated join...

    Ahhh Ha!

    Ok.... Runs fine on my server. Must be from using the express version on my local pc...

    Microsoft SQL Server Management Studio9.00.4035.00

    Microsoft Analysis Services Client Tools2005.090.4035.00

    Microsoft Data Access Components (MDAC)2000.086.3959.00...

  • RE: Complicated join...

    Ninja's_RGR'us (5/9/2011)


    Lowell (5/9/2011)


    Ninja's_RGR'us (5/9/2011)


    It's definitely possible, but if he could run my create db code, then I don't see why it would fail there (never seen that before).

    The only thing...

  • RE: Complicated join...

    Lowell (5/9/2011)


    mikeincape (5/9/2011)


    Yes... This gives me the dataset I need. Thanks!... Still getting that weird error though... Any Ideas?

    Ninja's is going to kick me for repeating what he already proved...

  • RE: Complicated join...

    Are you using any 3rd party application that refactors sql?

    Using SQL management Studio to execute the queries you are sening me... No 3rd party apps anywhere.

    Also, we've done it by...

  • RE: Complicated join...

    Invalid Column Name 'RW' on the most recent sql query from Lowell

  • RE: Complicated join...

    Yes... This gives me the dataset I need. Thanks!... Still getting that weird error though... Any Ideas?

  • RE: Complicated join...

    I posted Lowell's code straight to SQL Management Studio... Added the comma

    SELECT

    cl.RecordStatus,

    cl.ActiveClient,

    cl.SystemEffective,

    cl.Firstname,

    cl.Lastname,

    cl.MiddleI,

    cl.SSN,

    cl.ClientID,

    ...

  • RE: Complicated join...

    Your test query executed successfully.

Viewing 15 posts - 1 through 15 (of 23 total)