TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
jemmy parker
NA
18
1.9k
C#
Mar 16 2015 8:43 AM
select distinct InvoiceId,Id.ProjectCode,(select top 1 ClientRefNo from tblOrderDetail where ProjectCode = projectcode) as ClientRefNo,dbo.fnGetCustomerNameWithCode(Customer) as CustomerName,Isnull(SI.Status,'Open') as Status,CS3Invoice,Id.InvoiceDate,
(select CreatedDate from Tt_UploadDocuments where OrderNo = od.OrderNo and UploadDocumentTypeID=44) as PODUploadDate,(select CreatedDate from Tt_UploadDocuments where OrderNo = od.OrderNo and UploadDocumentTypeID=45) as HaulierInvoiceUploadDate,od.OrderNo,PODApprovedDate,Id.FinReconDatePaid as DatePaid
from dbo.InvoiceDetail Id Left join tblOrderDetail od on Id.ProjectCode = od.ProjectCode
inner join TrackingSystemTest.dbo.tblUser U on U.intUserId=OD.CreatedBy
left join Mt_SupplierInvoiceStatus SI on Id.FinReconSupplierInvoiceStatusId = SI.SupplierInvoiceStatusId
Where U.AreaId='ARE159' AND Id.ProjectCode IS NOT NULL AND OD.BaseOrder='B' AND Id.IsSupplierInvoice = 1
Order by Id.InvoiceDate DESC
I want the above query in LinQ format. Could you please help me?
Reply
Answers (
1
)
SQL to LINQ Query.
how to find MS-SQL records corresponding to a binary string