jsteinmann wrote:
> Current Recordset:
> SELECT id, threadid, postersname, topic, message,
dateposted, threadstarter,
> mypicurl FROM forum WHERE threadstarter = '1' ORDER BY
id DESC
>
> repeat region displays results. Since the where clause
limits to only those
> that started threads, there are no duplicate topics.
>
> Now I want to add two things to the results:
>
> 1. display the number of replies to the topic (i.e. all
the records that match
> the same threadid as the above recordset in the repeat
region, but where
> threadstarter = '0' )
>
> I would also like to display the last person to enter a
reply (i.e. threadid
> matches the threadid of the recordset repeat region and
is the last entry in
> database).
>
> How can I do this. I want to minimize my calls /
recordsets to accomplish
> this.
You want a sub-query in your SQL, you basically put another
select
statement in brackets followed by AS ColumnName where
ColumnName is the
new name of that column. Make sense? If not I will try to
explain a
little more.
Dooza
--
Posting Guidelines
http://www.adobe.com/support/forums/guidelines.html
How To Ask Smart Questions
http://www.catb.org/esr/faqs/smart-questions.html
How To Report A Bug To Adobe
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform