Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. SELECT
  2. TBL_CONTENT.CONTENT_ID AS ContentID,
  3. TBL_CONTENT.CONTENT_NAME AS Name,
  4. TBL_CONTENT.CONTENT_FEATURED_IMAGE AS FeaturedImage,
  5. TBL_CONTENT.CONTENT_DESC AS Excerpt,
  6. TBL_CONTENT.CONTENT_LONG_DESC AS Description,
  7. TBL_CONTENT.CONTENT_URL_PATH AS URL,
  8. TBL_CONTENT.CONTENT_META_TITLE AS MetaTitle,
  9. TBL_CONTENT.CONTENT_META_DESC AS MetaDesc,
  10. TBL_CONTENT.CONTENT_META_KEYWORD AS MetaKeyword,
  11. TBL_CONTENT.CONTENT_INSERTED_DATETIME AS InsertedDatetime,
  12. TBL_CONTENT.CONTENT_UPDATED_DATETIME AS UpdatedDatetime,
  13. TBL_CONTENT.CONTENT_CATEGORY_NAME AS CategoryName
  14. FROM dbo.TBL_CONTENT
  15. LEFT JOIN TBL_CONTENT_IN_CONTENT_CATEGORY ON TBL_CONTENT.CONTENT_ID = TBL_CONTENT_IN_CONTENT_CATEGORY.CONTENT_ID
  16. LEFT JOIN TBL_CONTENT_CATEGORY ON TBL_CONTENT_IN_CONTENT_CATEGORY.CONTENT_CATEGORY_ID = TBL_CONTENT_CATEGORY.CONTENT_CATEGORY_ID
  17. WHERE CONTENT_TYPE = 'BLOG'
  18. AND CONTENT_ACTIVE = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement