Community I have the following query in SQL server and I want to pass it to LINQ to work with .NET, but I don\'t know how to work the "with as" in linq