Hi I have the following situation:
tbl_resource
Code:
Id - parent_name - childOf
2 PC null
3 Office null
4 Keyboard 2
I have the following query:
Code:
select * from tbl_resource
I will like to get parent_name for childOf value, so something like:
Code:
Select * from tbl_resource (if childOf != null )
{ get parent_name for childOf value)
How do I do this in a query?