11 lines
739 B
SQL
11 lines
739 B
SQL
SELECT Title, EntryDescription, UploadDate, ProductionName, CategoryName, ThumbnailFileName, Likes, Dislikes, Content, ParentComment, VideoFileName, AudioFileName, ImageFileName
|
|
FROM MediaEntry
|
|
LEFT JOIN Production ON Production.ProductionID = MediaEntry.ProductionID
|
|
LEFT JOIN Category ON Category.CategoryID = MediaEntry.CategoryID
|
|
LEFT JOIN ContentPage ON ContentPage.EntryID = MediaEntry.EntryID
|
|
LEFT JOIN Comment ON Comment.PageID = ContentPage.PageID
|
|
LEFT JOIN Thumbnail ON Thumbnail.EntryID = MediaEntry.EntryID
|
|
LEFT JOIN VideoEntry ON VideoEntry.EntryID = MediaEntry.EntryID
|
|
LEFT JOIN AudioEntry ON AudioEntry.EntryID = MediaEntry.EntryID
|
|
LEFT JOIN ImageEntry ON ImageEntry.EntryID = MediaEntry.EntryID
|
|
WHERE MediaEntry.EntryID = 1 |