When designing a BBS an easy way, with Oracle is to use the "connect by" statement. Example:
select whatever
from table_name
start with id = #id_choice#
connect by prior id = parent_id
Does anyone know if the equivalent statement exists in SQL server? Basically you have each record associated with a parent record. So you can simply drill down through a tree and get all the children of a record. This easily creates a BBS type system.
Thanks in advance
select whatever
from table_name
start with id = #id_choice#
connect by prior id = parent_id
Does anyone know if the equivalent statement exists in SQL server? Basically you have each record associated with a parent record. So you can simply drill down through a tree and get all the children of a record. This easily creates a BBS type system.
Thanks in advance