Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
How to write a linq query to match this sql one ... ?
Adrian Reszka
8y
379
1
Reply
Hi,
Can someone help me out with writing a linq querry to match this sql one ?
SELECT
[PID_unique_ID],
min(AllocationStart) as
'start'
,
max(AllocationStart) as
'end'
,GETDATE() AS CurrentDateTime
FROM [table].[dbo].[table_name]
Where table_name.AllocationStart BETWEEN DATEADD(ww,-2,GETDATE()) AND DATEADD(ww,4,GETDATE())
Group by [PID_unique_ID]
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How to write Linq query for count salary
How to calling Get method of Sq-lite?