Skip to content
Advertisement

SQL SERVER – GRAB RECORD FROM THE TABLE BASED ON COLUMN ID

I have a db with records like the following structure in the table;

I have and entire db set up like this where the fid in some cases matches the id of another record. In that case id like to return one record with 2 different dates such as ;

I was thinking a self join but got hung up

Advertisement

Answer

Yes self join is one way

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement