Hi
I want to convert sql query to c# lambda query
selelct * from ABC where joiningdate between (Select top 1 DateAdd(d, -90,joiningdate) from ABC order by joiningdate desc) and (Select top 1 joiningdate from ABC order by joiningdate desc)
I need to convert WHERE clause in c# lambda query
Thanks.

Amit MohantyPosted Aug 17, 2023, 5:48 AM
Cr BhargaviPosted Aug 13, 2023, 7:52 AM
Tahir AnsariPosted Aug 12, 2023, 11:09 AM
Mohammad HussainPosted Aug 12, 2023, 10:02 AM
Here is how you can convert that SQL WHERE clause to C# lambda query:
This filters for entities in abc whose JoiningDate is between the max date minus 90 days and the max date overall.