Viewing 5 posts - 16 through 20 (of 20 total)
Adrian Charles Chetwynd-Talbot (9/17/2009)
September 17, 2009 at 7:01 am
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...
September 11, 2009 at 9:08 am
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....
September 9, 2009 at 7:38 am
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...
September 8, 2009 at 10:26 am
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])...
August 19, 2009 at 6:18 am
Viewing 5 posts - 16 through 20 (of 20 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy