Steve Schudlo wrote:
>
> SELECT accession_num FROM sample WHERE creation_data IN (SELECT
> MAX(creation_date) from SAMPLE GROUP BY patient_id)
Is this a typo? You have creation_data on the left hand side of IN and
MAX(creation_date) on the right hand side. Also, 'sample' and 'SAMPLE'
are different tables if IDB is case sensitive.
Toby.
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.
|