Forum Replies Created

Viewing 5 posts - 16 through 20 (of 20 total)

  • RE: SQL LEN Function

    Adrian Charles Chetwynd-Talbot (9/17/2009)


    the given answer to this question is incorrect because the string variable contains 9 characters including the commas and spaces. Total length through first function being...

  • RE: SQL LEN Function

    very interesting. I too thought the results would be "1, 2,". Until I set the output to text and realized I was wrong.

    I thought the final...

  • RE: Just pull back the MAX Date

    ok. Make sure the below query only returns 1 record per ID. If it doesn't rewrite just this portion until it only return the 1 record you need....

  • RE: Just pull back the MAX Date

    Since it is sql 2000. try the below. It should work but I didn't test it at all.

    SELECT DISTINCT dbo.DW_SALESINVOICES_F.Reference AS [Sih.Reference],

    dbo.DW_SALESINVOICES_F.InvoiceDate AS [Sih.InvoiceDate],

    DATEPART(YYYY, dbo.DW_SALESINVOICES_F.InvoiceDate) AS...

  • RE: Just pull back the MAX Date

    Since you only want to pull the max date from the dbo.DW_SERVICEORDERSJOBS_F table but still want to use a left join try something like the below.

    Left Join (select [someIDfield], max([someDateField])...

Viewing 5 posts - 16 through 20 (of 20 total)