Hi everyone!
I have a tricky problem. I have a very complex view in MS SQL 2005 with the following result:
| ID | Name | ParentID |
--------------------------------
| 1 | Cars | 1 |
| 2 | Audi | 1 |
| 3 | Toyota | 1 |
| 4 | Trucks | 4 |
Now I want my view to recognize that the record with ID 4 has no children and, because of this, to separate it out.
Any ideas? ;)
Thanks
Torben