[ic] Nesting queries

Kyle Cook interchange-users@lists.akopia.com
Tue Jul 3 20:23:00 2001


Use the mail list archive and try a search for some of your terms
like "nested query" and if that returns too much, limit it with additional
keywords like "Mike Heins" ;-)

one result search for this topic :

http://developer2.akopia.com/archive/interchange-users/2001/msg01564.html

Kyle

At 04:54 PM 7/3/01, you wrote:
>Is it possible to nest [query] tags? I have one [query] that lists top level
>categories and would like to list the selected subcategories with the main
>category using another [query].
>
>          [query list=1 st=db sql="select * from categories where
>parent=null"]
>          ... display main cat ...
>          [if sql-code = [data session arg]]
>          [then]
>              [query list=1 st=db sql="select * from categories where
>parent='[data session arg]'"]
>              ... display sub-cat ...
>              [/query]
>          [/then]
>          [/if]
>          [/query]
>
>Thanks,
>
>Peter
>
>_______________________________________________
>Interchange-users mailing list
>Interchange-users@lists.akopia.com
>http://lists.akopia.com/mailman/listinfo/interchange-users