> Ian Skinner wrote: > > Any of you SQL experts/gurus care to try a round of pro bono query > optimization. After a lot of trial and error and tinkering I was able > to write this query that gets the results I need, but boy is it > convoluted and long. My gut says there is a better way to do this, > but I have no idea where to start. > > Indenting it? > Jochem
Well it is indented in my code base, but you should have seen what the e-mail looked like that way. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215388 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54