1 Attachment(s)
[RESOLVED] redundant record
I have redundant record. Record below show twice. How to avoid it
Quote:
Selangor, panchang Bedena, 1/2003
Quote:
.Open "SELECT [Prestasi hasil].Negeri,[Prestasi hasil].[Lokasi Projek],[Prestasi hasil].Musim,pemilik.Pemilik1,pemilik.Pemilik2,[Prestasi hasil].Plot,[Prestasi hasil].[Hasil Kasar (kg)],[Prestasi hasil].[Purata Hasil Kasar (Tan/ha)],[Prestasi hasil].[Hasil Bersih (-17 %)],[Prestasi hasil].[Purata Hasil Bersih (Tan/ha)],[Prestasi hasil].Masalah FROM [Prestasi hasil],pemilik where [Prestasi hasil].Plot=pemilik.Plot"
Re: [RESOLVED] redundant record
Quote:
Xmas79 - why did you suggest DISTINCT and GROUP BY in the same query?
They bsically produce the same output - right?
They produce the same output, but they can procude different execution plans, depending on the engine and the query itself (ok, not the query above). But sorry for putting both in the same query...:o....
And sorry for answering late too... VBForums mail just arrived a few minutes ago...
Best regards,
Xmas.
Re: [RESOLVED] redundant record
Thanks for the clarification...
Quote:
Originally Posted by Xmas79
...they can procude different execution plans, depending on the engine and the query itself...
I discussed the execution plan differences in post #6 here...
Re: [RESOLVED] redundant record
Yes, I know... Credits of course go to you ;)
Best regards,
Xmas.