THIS USER HAS ALREADY ASKED THE EXACT DUPLICATE A FEW MINUTES AGO http://stackoverflow.com/questions/2552190/sql-and-linq-query
PhotoAlbums
table
AlbumID
Title
Date
Photos
table:
PhotoID
Title
Date
AlbumID
SELECT AlbumID, Title, Date,
(SELECT TOP (1) PhotoID
FROM Photos AS c
WHERE (AlbumID = a.AlbumID)) AS PhotoID
FROM PhotoAlbums AS a
I need this query written in LINQ-to-SQL. Thanks in advance