Author Topic

Nathan Kelly

Thursday 22 February 2007 11:11:14 pm

Comment47818

Cool thanks Bruce, this is the reference I needed, as it turns out my fetch just got a whole lot more complicated so the link is much appreciated.

My query now looks more like this:

SELECT DISTINCT tableOne.* 
FROM tableOne, tableTwo 
WHERE tableOne.myObjectID 
IN (tableTwo.myObjectID) 
ORDER BY myObjectName ASC

<i>(This is to avoid doing 2 queries and then handling the data in the template).</i>
I'll have a play around with some of the examples on pubsvn and see what I can come up with.

Cheers.

Pardon me while I burst into flames...