HiI have a table that have a relations between ID's. The table look like this...CREATE TABLE [dbo].[tbl_Products]( [NodeId] [int] IDENTITY(1,1) NOT NULL, [ParentNodeId] [int] NULL CONSTRAINT [PK_tbl_Products] PRIMARY KEY CLUSTERED ( [NodeId] ASC)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]) ON [PRIMARY]
ParentNodeID is related to NodeID, I would like to get all rows that are related based on a NodeID.Can someone show me how to do that?