How to convert following sql query to linq
SELECT top 1 Id, Name, Address,refNbr FROM tbl1
WHERE Name is not Null and refNbr='abc123'
Union
select l.Id,a.FirstName a.ResidenceAddress1, l.refNbr from tbl2 l, tbl3 a,
tbl4 b where b.auto = 1 and
l.Id = b.Id and l.Id = a.Id and l.refNbr = 'abc123'
Please do let me know how to convert this sql query written using union into linq in c sharp


Rijwan AnsariRank #82 · 24.2K reputationPosted Jan 26, 2022, 8:19 AM EST
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Jan 21, 2022, 8:55 AM EST
Unionwill merge but remove duplicates (distinct). For more information please follow the link to mold your query accordingly:https://stackoverflow.com/questions/2744205/how-to-convert-sql-union-to-linq
milton pils24 reputationPosted Jan 26, 2022, 3:38 AM EST
mobile app development services https://syndicode.com/mobile-application-development/ are perfect for businesses that need a highly-skilled software team. A Ukrainian team is likely to have an education in STEM, and they can operate with various technologies and programming languages. Some of the top languages used by Ukrainian software developers are Java, Ruby, and Typescript. The cost of hiring a Ukrainian software team is less than half that of a US company. The cost of maintaining an office in Ukraine is approximately $500 per month.