Advertisement
hecrus

Untitled

Sep 12th, 2018
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.53 KB | None | 0 0
  1. SELECT
  2. [Extent1].[id] AS [id],
  3. [Extent1].[created] AS [created],
  4. [Extent1].[modified] AS [modified],
  5. [Extent1].[userID] AS [userID],
  6. [Extent1].[repostID] AS [repostID],
  7. [Extent1].[commentsCount] AS [commentsCount],
  8. [Extent1].[isDisableComments] AS [isDisableComments],
  9. [Extent1].[likeCount] AS [likeCount],
  10. [Extent1].[dislikeCount] AS [dislikeCount],
  11. [Extent1].[title] AS [title],
  12. [Extent1].[isNews] AS [isNews],
  13. [Extent1].[isApproved] AS [isApproved],
  14. [Extent1].[approved] AS [approved],
  15. [Extent1].[isBlocked] AS [isBlocked],
  16. [Extent1].[blocked] AS [blocked],
  17. [Extent1].[blockedComment] AS [blockedComment],
  18. [Extent1].[isDeleted] AS [isDeleted],
  19. [Extent1].[deleted] AS [deleted],
  20. [Extent1].[repostText] AS [repostText],
  21. [Extent1].[topCreated] AS [topCreated],
  22. [Extent1].[topDeadline] AS [topDeadline],
  23. [Extent1].[topNum] AS [topNum],
  24. [Extent1].[sortDate] AS [sortDate],
  25. [Extent1].[onlyForSubscribers] AS [onlyForSubscribers],
  26. [Extent1].[typeID] AS [typeID],
  27. [Extent1].[isGallery] AS [isGallery],
  28. [Extent1].[lastCommentCreated] AS [lastCommentCreated],
  29. [Extent1].[viewCount] AS [viewCount],
  30. [Extent1].[isCompetition] AS [isCompetition],
  31. [Extent1].[isAudio] AS [isAudio],
  32. [Extent1].[pollID] AS [pollID],
  33. [Extent1].[isDisablePP] AS [isDisablePP],
  34. [Extent1].[isPhotoReport] AS [isPhotoReport],
  35. [Extent1].[previewID] AS [previewID],
  36. [Extent2].[id] AS [id1],
  37. [Extent2].[first] AS [first],
  38. [Extent2].[last] AS [last],
  39. [Extent2].[email] AS [email],
  40. [Extent2].[phone] AS [phone],
  41. [Extent2].[birthDate] AS [birthDate],
  42. [Extent2].[site] AS [site],
  43. [Extent2].[vk] AS [vk],
  44. [Extent2].[fb] AS [fb],
  45. [Extent2].[ok] AS [ok],
  46. [Extent2].[ig] AS [ig],
  47. [Extent2].[slag] AS [slag],
  48. [Extent2].[photo] AS [photo],
  49. [Extent2].[photoThumb] AS [photoThumb],
  50. [Extent2].[cover] AS [cover],
  51. [Extent2].[statusText] AS [statusText],
  52. [Extent2].[whoCanSendMeMessage] AS [whoCanSendMeMessage],
  53. [Extent2].[whoCanCommentMyPost] AS [whoCanCommentMyPost],
  54. [Extent2].[whoCanCommentMyNews] AS [whoCanCommentMyNews],
  55. [Extent2].[newMessageEmailAlert] AS [newMessageEmailAlert],
  56. [Extent2].[denyMyWallForNotAuthUsers] AS [denyMyWallForNotAuthUsers],
  57. [Extent2].[isDeleted] AS [isDeleted1],
  58. [Extent2].[deleted] AS [deleted1],
  59. [Extent2].[deletedUserComment] AS [deletedUserComment],
  60. [Extent2].[isBlocked] AS [isBlocked1],
  61. [Extent2].[blocked] AS [blocked1],
  62. [Extent2].[blockedDeadline] AS [blockedDeadline],
  63. [Extent2].[blockedComment] AS [blockedComment1],
  64. [Extent2].[username] AS [username],
  65. [Extent2].[showEmail] AS [showEmail],
  66. [Extent2].[showPhone] AS [showPhone],
  67. [Extent2].[newPostSubscribersAlertEmail] AS [newPostSubscribersAlertEmail],
  68. [Extent2].[topPostID] AS [topPostID],
  69. [Extent2].[virtualWalletBalance] AS [virtualWalletBalance],
  70. [Extent3].[id] AS [id2],
  71. [Extent3].[created] AS [created1],
  72. [Extent3].[modified] AS [modified1],
  73. [Extent3].[userID] AS [userID1],
  74. [Extent3].[repostID] AS [repostID1],
  75. [Extent3].[commentsCount] AS [commentsCount1],
  76. [Extent3].[isDisableComments] AS [isDisableComments1],
  77. [Extent3].[likeCount] AS [likeCount1],
  78. [Extent3].[dislikeCount] AS [dislikeCount1],
  79. [Extent3].[title] AS [title1],
  80. [Extent3].[isNews] AS [isNews1],
  81. [Extent3].[isApproved] AS [isApproved1],
  82. [Extent3].[approved] AS [approved1],
  83. [Extent3].[isBlocked] AS [isBlocked2],
  84. [Extent3].[blocked] AS [blocked2],
  85. [Extent3].[blockedComment] AS [blockedComment2],
  86. [Extent3].[isDeleted] AS [isDeleted2],
  87. [Extent3].[deleted] AS [deleted2],
  88. [Extent3].[repostText] AS [repostText1],
  89. [Extent3].[topCreated] AS [topCreated1],
  90. [Extent3].[topDeadline] AS [topDeadline1],
  91. [Extent3].[topNum] AS [topNum1],
  92. [Extent3].[sortDate] AS [sortDate1],
  93. [Extent3].[onlyForSubscribers] AS [onlyForSubscribers1],
  94. [Extent3].[typeID] AS [typeID1],
  95. [Extent3].[isGallery] AS [isGallery1],
  96. [Extent3].[lastCommentCreated] AS [lastCommentCreated1],
  97. [Extent3].[viewCount] AS [viewCount1],
  98. [Extent3].[isCompetition] AS [isCompetition1],
  99. [Extent3].[isAudio] AS [isAudio1],
  100. [Extent3].[pollID] AS [pollID1],
  101. [Extent3].[isDisablePP] AS [isDisablePP1],
  102. [Extent3].[isPhotoReport] AS [isPhotoReport1],
  103. [Extent3].[previewID] AS [previewID1],
  104. [Extent4].[id] AS [id3],
  105. [Extent4].[first] AS [first1],
  106. [Extent4].[last] AS [last1],
  107. [Extent4].[email] AS [email1],
  108. [Extent4].[phone] AS [phone1],
  109. [Extent4].[birthDate] AS [birthDate1],
  110. [Extent4].[site] AS [site1],
  111. [Extent4].[vk] AS [vk1],
  112. [Extent4].[fb] AS [fb1],
  113. [Extent4].[ok] AS [ok1],
  114. [Extent4].[ig] AS [ig1],
  115. [Extent4].[slag] AS [slag1],
  116. [Extent4].[photo] AS [photo1],
  117. [Extent4].[photoThumb] AS [photoThumb1],
  118. [Extent4].[cover] AS [cover1],
  119. [Extent4].[statusText] AS [statusText1],
  120. [Extent4].[whoCanSendMeMessage] AS [whoCanSendMeMessage1],
  121. [Extent4].[whoCanCommentMyPost] AS [whoCanCommentMyPost1],
  122. [Extent4].[whoCanCommentMyNews] AS [whoCanCommentMyNews1],
  123. [Extent4].[newMessageEmailAlert] AS [newMessageEmailAlert1],
  124. [Extent4].[denyMyWallForNotAuthUsers] AS [denyMyWallForNotAuthUsers1],
  125. [Extent4].[isDeleted] AS [isDeleted3],
  126. [Extent4].[deleted] AS [deleted3],
  127. [Extent4].[deletedUserComment] AS [deletedUserComment1],
  128. [Extent4].[isBlocked] AS [isBlocked3],
  129. [Extent4].[blocked] AS [blocked3],
  130. [Extent4].[blockedDeadline] AS [blockedDeadline1],
  131. [Extent4].[blockedComment] AS [blockedComment3],
  132. [Extent4].[username] AS [username1],
  133. [Extent4].[showEmail] AS [showEmail1],
  134. [Extent4].[showPhone] AS [showPhone1],
  135. [Extent4].[newPostSubscribersAlertEmail] AS [newPostSubscribersAlertEmail1],
  136. [Extent4].[topPostID] AS [topPostID1],
  137. [Extent4].[virtualWalletBalance] AS [virtualWalletBalance1],
  138. [Extent5].[id] AS [id4],
  139. [Extent5].[name] AS [name],
  140. [Extent5].[code] AS [code],
  141. [Extent5].[ord] AS [ord],
  142. [Extent5].[IsDeleted] AS [isDeleted4],
  143. [Extent6].[id] AS [id5],
  144. [Extent6].[data] AS [data],
  145. [Extent6].[code] AS [code1],
  146. [Extent6].[guid] AS [guid],
  147. [Extent6].[data2] AS [data2],
  148. [Extent6].[data3] AS [data3]
  149. FROM [dbo].[us_posts] AS [Extent1]
  150. LEFT OUTER JOIN [dbo].[us_profile] AS [Extent2] ON [Extent1].[userID] = [Extent2].[id]
  151. LEFT OUTER JOIN [dbo].[us_posts] AS [Extent3] ON [Extent1].[repostID] = [Extent3].[id]
  152. LEFT OUTER JOIN [dbo].[us_profile] AS [Extent4] ON [Extent3].[userID] = [Extent4].[id]
  153. LEFT OUTER JOIN [dbo].[us_postTypes] AS [Extent5] ON [Extent1].[typeID] = [Extent5].[id]
  154. LEFT OUTER JOIN [dbo].[us_resources] AS [Extent6] ON [Extent1].[previewID] = [Extent6].[id]
  155. WHERE (( NOT ((1 = [Extent1].[isDeleted]) AND ([Extent1].[isDeleted] IS NOT NULL))) AND ( NOT ((1 = [Extent1].[isBlocked])
  156. AND ([Extent1].[isBlocked] IS NOT NULL))) AND ((([Extent1].[isNews] IS NOT NULL)
  157. AND ([Extent1].[isApproved] = 1)) OR ([Extent1].[isNews] IS NULL)
  158. OR ( NOT ((1 = [Extent1].[isNews]) AND ([Extent1].[isNews] IS NOT NULL)))))
  159. OR (([Extent1].[isGallery] IS NOT NULL) AND ([Extent1].[isApproved] = 1)) OR ([Extent1].[isGallery] IS NULL) OR
  160. ( NOT ((1 = [Extent1].[isGallery]) AND ([Extent1].[isGallery] IS NOT NULL)))
  161. go
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement