Unfortunately, I can't ... messageparent is also "null" when a message was
not a direct reply to another message in the thread. :(

any ideas on the proper syntax for such a query?

==============
I need this query to get all messages in a thread except the first message
that started it. What I have clearly does not work. I seems like it should,
but it doesn't. 

<cfquery name="request.getMessageTaxonomy" datasource="#request.userdsn#">
    SELECT m.*, m.MessageID AS ItemID, m.MessageParent AS ParentItemID
        FROM Messages m
            WHERE    m.ThreadID = #attributes.ThreadID#
            AND    m.MessageDateCreated >=  ALL
            (
                SELECT Min(m.MessageDateCreated)
                FROM    Messages m
                WHERE    m.ThreadID = #attributes.ThreadID#
            )
            ORDER BY m.MessageDateCreated ASC
</cfquery>
==============

> From: Erik Voldengen <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Mon, 23 Oct 2000 19:47:55 -0700
> To: Fusebox <[EMAIL PROTECTED]>
> Subject: RE: ... should be a simple query question ...
> 
> Can't you just select all records where messageparent is not null?
> ------------------------------------------------------------------------------
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
> body.
> 

------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to