I am new to SQL server, please can any body help me out how to write this query in LINQ.
SELECT [Plan_Num]
,(select top 1 ba_level_code + ' - ' + ba_level_desc from baLevel where ba_level_code = '0' + Level_Num) as [Level]
,(select top 1 cast(Column_Num as varchar) + ' - ' + Column_Description from baPlanColumnStructure where Column_Num = CL.Column_Num) as [Column]
,[Sort_Order]
FROM baCodeLibrary CL where code_id = 25468 and isactive = 1 order by [Plan_num]
Thanks
You are looking for something like this