yes, you can combine them, but you have to be careful about whether or not the new query is actually going to return the row(s) you want
it all depends on whether the condition that you pass in via the form is true for all revisions of a drawing
if it's true for some revision, but not the latest revision, what then?
anyhow, try this --
Code:
SELECT *
FROM RegistryDatabase
where RegistryDatabase.revision =
( select max(revision)
from RegistryDatabase self
where self.whole_number =
RegistryDatabase.whole_number )
and whereclause
rudy
http://rudy.ca/