Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 .NET Inside SQL Server (2005)
 equivalent LINQ query

Author  Topic 

DesiGal
Starting Member

31 Posts

Posted - 2011-05-16 : 15:10:34
Can anyone help me with the equivalent LINQ query for the SQL below?

Select *
From Students_History SH
Where SH.Active = 1 and SH.ModifiedAt in (
select MAX(SH1.modifiedat)from Students_History SH1
group by SH1.RuleId)

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-05-16 : 15:27:28
You should probably ask your question in a forum that specializes in LINQ.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -