Forum Replies Created

Viewing 7 posts - 61 through 68 (of 68 total)

  • RE: I want a solution of this

    Next time please ensure that you provide small sample scripts to create data and populate. Those who want to help

    you will use these scripts to recreate the issue...

    Moving on to...

    How To Post[/url]

  • RE: left join help

    haha ... i am wondering the same thing too .... mine also does not require a distinct and neither does yours (Lynn's)..

    So where did the grasshopper add 'Distinct' ??

    :hehe:

    How To Post[/url]

  • RE: left join help

    This final one does exactly what you need..... though I am unsure why you want this in place of the one i sent before...

    select day_date, cl2.client_id, cl2.schedule_date from (Select distinct...

    How To Post[/url]

  • RE: left join help

    I am sorry ...i did not look too deeply...

    here is the updated one...

    select day_date, cl.client_id, cl2.schedule_date from (Select distinct client_id from #client) cl

    cross join #date_dim dd

    left join #client cl2

    on cl2.schedule_date=dd.day_date

    and...

    How To Post[/url]

  • RE: left join help

    Try this....

    select day_date, cl.client_id, cl2.schedule_date from (Select distinct client_id from #client) cl

    cross join #date_dim dd

    left join #client cl2

    on cl2.schedule_date=dd.day_date

    This is the closest I got to...

    How To Post[/url]

  • RE: SQL test questions needed

    Yeah, I am doing that too .... but remember that I need to sift through questions and find the kind that I am

    looking for. For eg: questions like how to...

    How To Post[/url]

  • RE: SQL test questions needed

    Thanks fro all the responses guys ... I will definitely check out these books.

    How To Post[/url]

Viewing 7 posts - 61 through 68 (of 68 total)