Forum Replies Created

Viewing 7 posts - 61 through 67 (of 67 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...

  • 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:

  • 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...

  • 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...

  • 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...

  • 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...

  • RE: SQL test questions needed

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

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