Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 44.18 KB | None | 0 0
  1. SELECT   a.[field_name]  AS COL1,
  2.          a.[module_name] AS COL2,
  3.          a.[type_name]   AS COL3,
  4.          a.[TABLE_NAME]  AS COL4
  5. FROM     [sf_meta_data_mapping] a
  6. WHERE    (
  7.                   a.[type_name] IN (@p0,
  8.                                     @p1))
  9. ORDER BY col1,
  10.          col2,
  11.          col3SELECT   a.[field_name]  AS COL1,
  12.          a.[module_name] AS COL2,
  13.          a.[type_name]   AS COL3,
  14.          a.[TABLE_NAME]  AS COL4
  15. FROM     [sf_meta_data_mapping] a
  16. WHERE    (
  17.                   a.[type_name] IN (@p0,
  18.                                     @p1))
  19. ORDER BY col1,
  20.          col2,
  21.          col3SELECT   a.[field_name]  AS col1,
  22.          a.[module_name] AS col2,
  23.          a.[type_name]   AS col3,
  24.          a.[TABLE_NAME]  AS col4
  25. FROM     [sf_meta_data_mapping] a
  26. WHERE    (
  27.                   a.[type_name] IN (@p0,
  28.                                     @p1))
  29. ORDER BY col1,
  30.          col2,
  31.          col3 beginCOMMITSELECT COUNT(1) AS EXPR1
  32. FROM   [sf_libraries] a
  33. WHERE  a.[app_name] = @p0
  34. AND    a.[voa_class] = 447337637SELECT    TOP(@__TAKE) a.[content_id]      AS COL1,
  35.           a.[voa_class]                    AS COL2,
  36.           a.[test_bool]                    AS COL3,
  37.           a.[test_choice]                  AS COL4,
  38.           a.[test_date_time]               AS COL5,
  39.           a.[test_decimal]                 AS COL6,
  40.           a.[test_guid]                    AS COL7,
  41.           a.[test_long_text_field_name]    AS COL8,
  42.           b.[testlongtextfieldname_en]     AS COL9,
  43.           c.[testlongtextfieldname_en_us]  AS COL10,
  44.           a.[test_short_text_field_name]   AS COL11,
  45.           b.[testshorttextfieldname_en]    AS COL12,
  46.           c.[testshorttextfieldname_en_us] AS COL13,
  47.           a.[test_string]                  AS COL14,
  48.           a.[new_size]                     AS COL15,
  49.           a.[resize_on_upload]             AS COL16,
  50.           a.[description_]                 AS COL17,
  51.           a.[title_]                       AS COL18,
  52.           a.[title_aa]                     AS COL19,
  53.           a.[title_ar_ma]                  AS COL20,
  54.           a.[title_bg_bg]                  AS COL21,
  55.           a.[title_de_de]                  AS COL22,
  56.           a.[title_en]                     AS COL23,
  57.           a.[title_en_us]                  AS COL24,
  58.           a.[title_fr_fr]                  AS COL25,
  59.           a.[title_sr_cyrl_ba]             AS COL26,
  60.           a.[title_tr_tr]                  AS COL27,
  61.           a.[url_name_]                    AS COL28,
  62.           a.[allow_comments]               AS COL29,
  63.           a.[allow_track_backs]            AS COL30,
  64.           a.[app_name]                     AS COL31,
  65.           a.[approve_comments]             AS COL32,
  66.           a.[content_state]                AS COL33,
  67.           a.[date_created]                 AS COL34,
  68.           a.[default_page_id]              AS COL35,
  69.           a.[draft_culture]                AS COL36,
  70.           a.[email_author]                 AS COL37,
  71.           a.[expiration_date]              AS COL38,
  72.           a.[include_in_sitemap]           AS COL39,
  73.           a.[last_modified]                AS COL40,
  74.           a.[last_modified_by]             AS COL41,
  75.           a.[original_content_id]          AS COL42,
  76.           a.[ownr]                         AS COL43,
  77.           a.[post_rights]                  AS COL44,
  78.           a.[publication_date]             AS COL45,
  79.           a.[source_key]                   AS COL46,
  80.           a.[STATUS]                       AS COL47,
  81.           a.[vrsion]                       AS COL48,
  82.           a.[views_count]                  AS COL49,
  83.           a.[visible]                      AS COL50,
  84.           a.[votes_count]                  AS COL51,
  85.           a.[votes_sum]                    AS COL52,
  86.           b.[description_en]               AS COL53,
  87.           c.[description_en_us]            AS COL54,
  88.           a.[item_default_url_]            AS COL55,
  89.           b.[itemdefaulturl_en]            AS COL56,
  90.           c.[itemdefaulturl_en_us]         AS COL57,
  91.           b.[urlname_en]                   AS COL58,
  92.           c.[urlname_en_us]                AS COL59,
  93.           a.[blob_storage]                 AS COL60,
  94.           a.[cache_profile]                AS COL61,
  95.           a.[can_inherit_permissions]      AS COL62,
  96.           a.[client_cache_profile]         AS COL63,
  97.           a.[cover_id]                     AS COL64,
  98.           a.[security_provider]            AS COL65,
  99.           a.[inherits_permissions]         AS COL66,
  100.           a.[is_deleted]                   AS COL67,
  101.           a.[max_item_size]                AS COL68,
  102.           a.[max_size]                     AS COL69,
  103.           a.[tmb_regen]                    AS COL70,
  104.           a.[running_task]                 AS COL71
  105. FROM      [sf_libraries] a
  106. LEFT JOIN [sf_libraries_en] AS b
  107. ON        (
  108.                     a.[content_id] = b.[content_id])
  109. LEFT JOIN [sf_libraries_en_us] AS c
  110. ON        (
  111.                     a.[content_id] = c.[content_id])
  112. WHERE     a.[app_name] = @p0
  113. AND       a.[voa_class] = 447337637SELECT    a.[content_id]                  AS COL1,
  114.           a.[content_id]                  AS COL2,
  115.           a.[voa_class]                   AS COL3,
  116.           a.[alternative_text_]           AS COL4,
  117.           b.[alternativetext_en]          AS COL5,
  118.           c.[alternativetext_en_us]       AS COL6,
  119.           a.[description_]                AS COL7,
  120.           a.[title_]                      AS COL8,
  121.           a.[title_aa]                    AS COL9,
  122.           a.[title_ar_ma]                 AS COL10,
  123.           a.[title_bg_bg]                 AS COL11,
  124.           a.[title_de_de]                 AS COL12,
  125.           a.[title_en]                    AS COL13,
  126.           a.[title_en_us]                 AS COL14,
  127.           a.[title_fr_fr]                 AS COL15,
  128.           a.[title_sr_cyrl_ba]            AS COL16,
  129.           a.[title_tr_tr]                 AS COL17,
  130.           a.[url_name_]                   AS COL18,
  131.           a.[allow_comments]              AS COL19,
  132.           a.[allow_track_backs]           AS COL20,
  133.           a.[app_name]                    AS COL21,
  134.           a.[approve_comments]            AS COL22,
  135.           a.[content_state]               AS COL23,
  136.           a.[date_created]                AS COL24,
  137.           a.[default_page_id]             AS COL25,
  138.           a.[draft_culture]               AS COL26,
  139.           a.[email_author]                AS COL27,
  140.           a.[expiration_date]             AS COL28,
  141.           a.[include_in_sitemap]          AS COL29,
  142.           a.[last_modified]               AS COL30,
  143.           a.[last_modified_by]            AS COL31,
  144.           a.[original_content_id]         AS COL32,
  145.           a.[ownr]                        AS COL33,
  146.           a.[post_rights]                 AS COL34,
  147.           a.[publication_date]            AS COL35,
  148.           a.[source_key]                  AS COL36,
  149.           a.[STATUS]                      AS COL37,
  150.           a.[vrsion]                      AS COL38,
  151.           a.[views_count]                 AS COL39,
  152.           a.[visible]                     AS COL40,
  153.           a.[votes_count]                 AS COL41,
  154.           a.[votes_sum]                   AS COL42,
  155.           a.[approval_workflow_state_]    AS COL43,
  156.           b.[approvalworkflowstate_en]    AS COL44,
  157.           c.[approvalworkflowstate_en_us] AS COL45,
  158.           a.[author_]                     AS COL46,
  159.           b.[author_en]                   AS COL47,
  160.           c.[author_en_us]                AS COL48,
  161.           b.[description_en]              AS COL49,
  162.           c.[description_en_us]           AS COL50,
  163.           a.[item_default_url_]           AS COL51,
  164.           b.[itemdefaulturl_en]           AS COL52,
  165.           c.[itemdefaulturl_en_us]        AS COL53,
  166.           a.[media_file_url_name_]        AS COL54,
  167.           b.[mediafileurlname_en]         AS COL55,
  168.           c.[mediafileurlname_en_us]      AS COL56,
  169.           b.[urlname_en]                  AS COL57,
  170.           c.[urlname_en_us]               AS COL58,
  171.           a.[blob_storage]                AS COL59,
  172.           a.[can_inherit_permissions]     AS COL60,
  173.           a.[folder_id]                   AS COL61,
  174.           a.[inherits_permissions]        AS COL62,
  175.           a.[tmb_regen]                   AS COL63,
  176.           a.[ordinal]                     AS COL64,
  177.           a.[parent_id]                   AS COL65,
  178.           a.[parent_id]                   AS COL66,
  179.           a.[tmb_vrsn]                    AS COL67,
  180.           a.[uploaded]                    AS COL68,
  181.           a.[lgcy_tmb_strg]               AS COL69,
  182.           a.[was_published]               AS COL70,
  183.           a.[voa_version]                 AS COL71,
  184.           d.[id]                          AS COL72,
  185.           d.[app_name]                    AS COL73,
  186.           d.[content_id]                  AS COL74,
  187.           d.[chunk_size]                  AS COL75,
  188.           d.[culture]                     AS COL76,
  189.           d.[default_url]                 AS COL77,
  190.           d.[extension]                   AS COL78,
  191.           d.[file_id]                     AS COL79,
  192.           d.[file_path]                   AS COL80,
  193.           d.[height]                      AS COL81,
  194.           d.[content_id]                  AS COL82,
  195.           d.[mime_type]                   AS COL83,
  196.           d.[number_of_chunks]            AS COL84,
  197.           d.[total_size]                  AS COL85,
  198.           d.[width]                       AS COL86
  199. FROM      [sf_media_content] a
  200. LEFT JOIN [sf_media_content_en] AS b
  201. ON        (
  202.                     a.[content_id] = b.[content_id])
  203. LEFT JOIN [sf_media_content_en_us] AS c
  204. ON        (
  205.                     a.[content_id] = c.[content_id])
  206. LEFT JOIN [sf_media_file_links] AS d
  207. ON        (
  208.                     a.[content_id] = d.[content_id])
  209. WHERE     a.[app_name] = @p0
  210. AND       a.[STATUS] = @p1
  211. AND       (((
  212.                                         a.[folder_id] IN (@p2,
  213.                                                           @p3,
  214.                                                           @p4,
  215.                                                           @p5,
  216.                                                           @p6,
  217.                                                           @p7))
  218.                     OR        (
  219.                                         a.[parent_id] IN (@p8,
  220.                                                           @p9,
  221.                                                           @p10,
  222.                                                           @p11,
  223.                                                           @p12,
  224.                                                           @p13))))
  225. AND       a.[voa_class] = 1053642113
  226. ORDER BY  col24 DESC,
  227.           col1,
  228.           col74SELECT    a.[id]                           AS COL1,
  229.           a.[last_modified]                AS COL2,
  230.           a.[description_]                 AS COL3,
  231.           b.[description_en]               AS COL4,
  232.           c.[description_en_us]            AS COL5,
  233.           a.[test_bool]                    AS COL6,
  234.           a.[test_choice]                  AS COL7,
  235.           a.[test_date_time]               AS COL8,
  236.           a.[test_decimal]                 AS COL9,
  237.           a.[test_guid]                    AS COL10,
  238.           a.[test_long_text_field_name]    AS COL11,
  239.           b.[testlongtextfieldname_en]     AS COL12,
  240.           c.[testlongtextfieldname_en_us]  AS COL13,
  241.           a.[test_short_text_field_name]   AS COL14,
  242.           b.[testshorttextfieldname_en]    AS COL15,
  243.           c.[testshorttextfieldname_en_us] AS COL16,
  244.           a.[test_string]                  AS COL17,
  245.           a.[title_]                       AS COL18,
  246.           a.[title_aa]                     AS COL19,
  247.           a.[title_ar_ma]                  AS COL20,
  248.           a.[title_bg_bg]                  AS COL21,
  249.           a.[title_de_de]                  AS COL22,
  250.           a.[title_en]                     AS COL23,
  251.           a.[title_en_us]                  AS COL24,
  252.           a.[title_fr_fr]                  AS COL25,
  253.           a.[title_sr_cyrl_ba]             AS COL26,
  254.           a.[title_tr_tr]                  AS COL27,
  255.           a.[url_name_]                    AS COL28,
  256.           b.[urlname_en]                   AS COL29,
  257.           c.[urlname_en_us]                AS COL30,
  258.           a.[app_name]                     AS COL31,
  259.           a.[cover_id]                     AS COL32,
  260.           a.[is_deleted]                   AS COL33,
  261.           a.[parent_id]                    AS COL34,
  262.           a.[parent_id]                    AS COL35,
  263.           a.[path]                         AS COL36,
  264.           a.[root_id]                      AS COL37,
  265.           a.[voa_version]                  AS COL38, (
  266.           CASE
  267.                     WHEN a.[title_en_us] IS NULL THEN a.[title_]
  268.                     ELSE a.[title_en_us]
  269.           END) AS xj1
  270. FROM      [sf_folders] a
  271. LEFT JOIN [sf_folders_en] AS b
  272. ON        (
  273.                     a.[id] = b.[id])
  274. LEFT JOIN [sf_folders_en_us] AS c
  275. ON        (
  276.                     a.[id] = c.[id])
  277. WHERE     a.[app_name] = @p0
  278. AND       (
  279.                     a.[root_id] IN (@p1,
  280.                                     @p2,
  281.                                     @p3,
  282.                                     @p4,
  283.                                     @p5,
  284.                                     @p6))
  285. AND       a.[parent_id] IS NULL
  286. ORDER BY  xj1,
  287.           col1SELECT   c.[content_id] AS COL1
  288. FROM     [sf_media_content] a
  289. JOIN     [sf_users] AS b
  290. ON       (
  291.                   a.[ownr] = b.[id])
  292. JOIN     [sf_libraries] AS c
  293. ON       (
  294.                   a.[parent_id] = c.[content_id])
  295. WHERE    a.[app_name] = @p0
  296. AND      (
  297.                   c.[content_id] IN (@p1,
  298.                                      @p2,
  299.                                      @p3,
  300.                                      @p4,
  301.                                      @p5,
  302.                                      @p6))
  303. AND      b.[app_name] = @p7
  304. AND      a.[voa_class] = 1053642113
  305. GROUP BY c.[content_id]SELECT   a.[content_id]   AS COL1,
  306.          b.[id]           AS COL2,
  307.          a.[date_created] AS xj1
  308. FROM     [sf_media_content] a
  309. JOIN     [sf_users] AS b
  310. ON       (
  311.                   a.[ownr] = b.[id])
  312. JOIN     [sf_libraries] AS c
  313. ON       (
  314.                   a.[parent_id] = c.[content_id])
  315. WHERE    c.[content_id] = @p0
  316. AND      a.[app_name] = @p1
  317. AND      (
  318.                   c.[content_id] IN (@p2,
  319.                                      @p3,
  320.                                      @p4,
  321.                                      @p5,
  322.                                      @p6,
  323.                                      @p7))
  324. AND      b.[app_name] = @p8
  325. AND      a.[voa_class] = 1053642113
  326. ORDER BY xj1 DESC,
  327.          col1SELECT    a.[voa_class]                   AS COL1,
  328.           a.[alternative_text_]           AS COL2,
  329.           b.[alternativetext_en]          AS COL3,
  330.           c.[alternativetext_en_us]       AS COL4,
  331.           a.[description_]                AS COL5,
  332.           a.[title_]                      AS COL6,
  333.           a.[title_aa]                    AS COL7,
  334.           a.[title_ar_ma]                 AS COL8,
  335.           a.[title_bg_bg]                 AS COL9,
  336.           a.[title_de_de]                 AS COL10,
  337.           a.[title_en]                    AS COL11,
  338.           a.[title_en_us]                 AS COL12,
  339.           a.[title_fr_fr]                 AS COL13,
  340.           a.[title_sr_cyrl_ba]            AS COL14,
  341.           a.[title_tr_tr]                 AS COL15,
  342.           a.[url_name_]                   AS COL16,
  343.           a.[allow_comments]              AS COL17,
  344.           a.[allow_track_backs]           AS COL18,
  345.           a.[app_name]                    AS COL19,
  346.           a.[approve_comments]            AS COL20,
  347.           a.[content_state]               AS COL21,
  348.           a.[date_created]                AS COL22,
  349.           a.[default_page_id]             AS COL23,
  350.           a.[draft_culture]               AS COL24,
  351.           a.[email_author]                AS COL25,
  352.           a.[expiration_date]             AS COL26,
  353.           a.[include_in_sitemap]          AS COL27,
  354.           a.[last_modified]               AS COL28,
  355.           a.[last_modified_by]            AS COL29,
  356.           a.[original_content_id]         AS COL30,
  357.           a.[ownr]                        AS COL31,
  358.           a.[post_rights]                 AS COL32,
  359.           a.[publication_date]            AS COL33,
  360.           a.[source_key]                  AS COL34,
  361.           a.[STATUS]                      AS COL35,
  362.           a.[vrsion]                      AS COL36,
  363.           a.[views_count]                 AS COL37,
  364.           a.[visible]                     AS COL38,
  365.           a.[votes_count]                 AS COL39,
  366.           a.[votes_sum]                   AS COL40,
  367.           a.[approval_workflow_state_]    AS COL41,
  368.           b.[approvalworkflowstate_en]    AS COL42,
  369.           c.[approvalworkflowstate_en_us] AS COL43,
  370.           a.[author_]                     AS COL44,
  371.           b.[author_en]                   AS COL45,
  372.           c.[author_en_us]                AS COL46,
  373.           b.[description_en]              AS COL47,
  374.           c.[description_en_us]           AS COL48,
  375.           a.[item_default_url_]           AS COL49,
  376.           b.[itemdefaulturl_en]           AS COL50,
  377.           c.[itemdefaulturl_en_us]        AS COL51,
  378.           a.[media_file_url_name_]        AS COL52,
  379.           b.[mediafileurlname_en]         AS COL53,
  380.           c.[mediafileurlname_en_us]      AS COL54,
  381.           b.[urlname_en]                  AS COL55,
  382.           c.[urlname_en_us]               AS COL56,
  383.           a.[blob_storage]                AS COL57,
  384.           a.[can_inherit_permissions]     AS COL58,
  385.           a.[folder_id]                   AS COL59,
  386.           a.[inherits_permissions]        AS COL60,
  387.           a.[tmb_regen]                   AS COL61,
  388.           a.[ordinal]                     AS COL62,
  389.           a.[parent_id]                   AS COL63,
  390.           a.[parent_id]                   AS COL64,
  391.           a.[tmb_vrsn]                    AS COL65,
  392.           a.[uploaded]                    AS COL66,
  393.           a.[lgcy_tmb_strg]               AS COL67,
  394.           a.[was_published]               AS COL68,
  395.           a.[voa_version]                 AS COL69,
  396.           d.[id]                          AS COL70,
  397.           d.[app_name]                    AS COL71,
  398.           d.[content_id]                  AS COL72,
  399.           d.[chunk_size]                  AS COL73,
  400.           d.[culture]                     AS COL74,
  401.           d.[default_url]                 AS COL75,
  402.           d.[extension]                   AS COL76,
  403.           d.[file_id]                     AS COL77,
  404.           d.[file_path]                   AS COL78,
  405.           d.[height]                      AS COL79,
  406.           d.[content_id]                  AS COL80,
  407.           d.[mime_type]                   AS COL81,
  408.           d.[number_of_chunks]            AS COL82,
  409.           d.[total_size]                  AS COL83,
  410.           d.[width]                       AS COL84
  411. FROM      [sf_media_content] a
  412. LEFT JOIN [sf_media_content_en] AS b
  413. ON        (
  414.                     a.[content_id] = b.[content_id])
  415. LEFT JOIN [sf_media_content_en_us] AS c
  416. ON        (
  417.                     a.[content_id] = c.[content_id])
  418. LEFT JOIN [sf_media_file_links] AS d
  419. ON        (
  420.                     a.[content_id] = d.[content_id])
  421. WHERE     a.[content_id] = @p0SELECT    a.[app_name]                       AS COL1,
  422.           a.[commnt]                         AS COL2,
  423.           a.[creation_date]                  AS COL3,
  424.           a.[email]                          AS COL4,
  425.           a.[ext_id]                         AS COL5,
  426.           a.[ext_provider_name]              AS COL6,
  427.           a.[fld_psswrd_nswer_attempt_count] AS COL7,
  428.           a.[fld_psswrd_nswr_ttmpt_wndw_str] AS COL8,
  429.           a.[failed_password_attempt_count]  AS COL9,
  430.           a.[fld_psswrd_ttempt_window_start] AS COL10,
  431.           a.[first_name]                     AS COL11,
  432.           a.[is_approved]                    AS COL12,
  433.           a.[is_backend_user]                AS COL13,
  434.           a.[is_locked_out]                  AS COL14,
  435.           a.[is_logged_in]                   AS COL15,
  436.           a.[last_activity_date]             AS COL16,
  437.           a.[last_lockout_date]              AS COL17,
  438.           a.[last_login_date]                AS COL18,
  439.           a.[last_login_ip]                  AS COL19,
  440.           a.[last_modified]                  AS COL20,
  441.           a.[last_name]                      AS COL21,
  442.           a.[last_password_changed_date]     AS COL22,
  443.           a.[manager_info]                   AS COL23,
  444.           a.[passwd]                         AS COL24,
  445.           a.[password_answer]                AS COL25,
  446.           a.[password_format]                AS COL26,
  447.           a.[password_question]              AS COL27,
  448.           a.[salt]                           AS COL28,
  449.           a.[user_name]                      AS COL29,
  450.           b.[id]                             AS COL30,
  451.           b.[app_name]                       AS COL31,
  452.           b.[last_modified]                  AS COL32,
  453.           b.[manager_type]                   AS COL33,
  454.           b.[provider_name]                  AS COL34,
  455.           b.[voa_version]                    AS COL35
  456. FROM      [sf_users] a
  457. LEFT JOIN [sf_manager_info] AS b
  458. ON        (
  459.                     a.[manager_info] = b.[id])
  460. WHERE     a.[id] = @p0SELECT   a.[content_id]   AS COL1,
  461.          b.[id]           AS COL2,
  462.          a.[date_created] AS xj1
  463. FROM     [sf_media_content] a
  464. JOIN     [sf_users] AS b
  465. ON       (
  466.                   a.[ownr] = b.[id])
  467. JOIN     [sf_libraries] AS c
  468. ON       (
  469.                   a.[parent_id] = c.[content_id])
  470. WHERE    c.[content_id] = @p0
  471. AND      a.[app_name] = @p1
  472. AND      (
  473.                   c.[content_id] IN (@p2,
  474.                                      @p3,
  475.                                      @p4,
  476.                                      @p5,
  477.                                      @p6,
  478.                                      @p7))
  479. AND      b.[app_name] = @p8
  480. AND      a.[voa_class] = 1053642113
  481. ORDER BY xj1 DESC,
  482.          col1SELECT    a.[voa_class]                   AS COL1,
  483.           a.[alternative_text_]           AS COL2,
  484.           b.[alternativetext_en]          AS COL3,
  485.           c.[alternativetext_en_us]       AS COL4,
  486.           a.[description_]                AS COL5,
  487.           a.[title_]                      AS COL6,
  488.           a.[title_aa]                    AS COL7,
  489.           a.[title_ar_ma]                 AS COL8,
  490.           a.[title_bg_bg]                 AS COL9,
  491.           a.[title_de_de]                 AS COL10,
  492.           a.[title_en]                    AS COL11,
  493.           a.[title_en_us]                 AS COL12,
  494.           a.[title_fr_fr]                 AS COL13,
  495.           a.[title_sr_cyrl_ba]            AS COL14,
  496.           a.[title_tr_tr]                 AS COL15,
  497.           a.[url_name_]                   AS COL16,
  498.           a.[allow_comments]              AS COL17,
  499.           a.[allow_track_backs]           AS COL18,
  500.           a.[app_name]                    AS COL19,
  501.           a.[approve_comments]            AS COL20,
  502.           a.[content_state]               AS COL21,
  503.           a.[date_created]                AS COL22,
  504.           a.[default_page_id]             AS COL23,
  505.           a.[draft_culture]               AS COL24,
  506.           a.[email_author]                AS COL25,
  507.           a.[expiration_date]             AS COL26,
  508.           a.[include_in_sitemap]          AS COL27,
  509.           a.[last_modified]               AS COL28,
  510.           a.[last_modified_by]            AS COL29,
  511.           a.[original_content_id]         AS COL30,
  512.           a.[ownr]                        AS COL31,
  513.           a.[post_rights]                 AS COL32,
  514.           a.[publication_date]            AS COL33,
  515.           a.[source_key]                  AS COL34,
  516.           a.[STATUS]                      AS COL35,
  517.           a.[vrsion]                      AS COL36,
  518.           a.[views_count]                 AS COL37,
  519.           a.[visible]                     AS COL38,
  520.           a.[votes_count]                 AS COL39,
  521.           a.[votes_sum]                   AS COL40,
  522.           a.[approval_workflow_state_]    AS COL41,
  523.           b.[approvalworkflowstate_en]    AS COL42,
  524.           c.[approvalworkflowstate_en_us] AS COL43,
  525.           a.[author_]                     AS COL44,
  526.           b.[author_en]                   AS COL45,
  527.           c.[author_en_us]                AS COL46,
  528.           b.[description_en]              AS COL47,
  529.           c.[description_en_us]           AS COL48,
  530.           a.[item_default_url_]           AS COL49,
  531.           b.[itemdefaulturl_en]           AS COL50,
  532.           c.[itemdefaulturl_en_us]        AS COL51,
  533.           a.[media_file_url_name_]        AS COL52,
  534.           b.[mediafileurlname_en]         AS COL53,
  535.           c.[mediafileurlname_en_us]      AS COL54,
  536.           b.[urlname_en]                  AS COL55,
  537.           c.[urlname_en_us]               AS COL56,
  538.           a.[blob_storage]                AS COL57,
  539.           a.[can_inherit_permissions]     AS COL58,
  540.           a.[folder_id]                   AS COL59,
  541.           a.[inherits_permissions]        AS COL60,
  542.           a.[tmb_regen]                   AS COL61,
  543.           a.[ordinal]                     AS COL62,
  544.           a.[parent_id]                   AS COL63,
  545.           a.[parent_id]                   AS COL64,
  546.           a.[tmb_vrsn]                    AS COL65,
  547.           a.[uploaded]                    AS COL66,
  548.           a.[lgcy_tmb_strg]               AS COL67,
  549.           a.[was_published]               AS COL68,
  550.           a.[voa_version]                 AS COL69,
  551.           d.[id]                          AS COL70,
  552.           d.[app_name]                    AS COL71,
  553.           d.[content_id]                  AS COL72,
  554.           d.[chunk_size]                  AS COL73,
  555.           d.[culture]                     AS COL74,
  556.           d.[default_url]                 AS COL75,
  557.           d.[extension]                   AS COL76,
  558.           d.[file_id]                     AS COL77,
  559.           d.[file_path]                   AS COL78,
  560.           d.[height]                      AS COL79,
  561.           d.[content_id]                  AS COL80,
  562.           d.[mime_type]                   AS COL81,
  563.           d.[number_of_chunks]            AS COL82,
  564.           d.[total_size]                  AS COL83,
  565.           d.[width]                       AS COL84
  566. FROM      [sf_media_content] a
  567. LEFT JOIN [sf_media_content_en] AS b
  568. ON        (
  569.                     a.[content_id] = b.[content_id])
  570. LEFT JOIN [sf_media_content_en_us] AS c
  571. ON        (
  572.                     a.[content_id] = c.[content_id])
  573. LEFT JOIN [sf_media_file_links] AS d
  574. ON        (
  575.                     a.[content_id] = d.[content_id])
  576. WHERE     a.[content_id] = @p0SELECT   a.[content_id]   AS COL1,
  577.          b.[id]           AS COL2,
  578.          a.[date_created] AS xj1
  579. FROM     [sf_media_content] a
  580. JOIN     [sf_users] AS b
  581. ON       (
  582.                   a.[ownr] = b.[id])
  583. JOIN     [sf_libraries] AS c
  584. ON       (
  585.                   a.[parent_id] = c.[content_id])
  586. WHERE    c.[content_id] = @p0
  587. AND      a.[app_name] = @p1
  588. AND      (
  589.                   c.[content_id] IN (@p2,
  590.                                      @p3,
  591.                                      @p4,
  592.                                      @p5,
  593.                                      @p6,
  594.                                      @p7))
  595. AND      b.[app_name] = @p8
  596. AND      a.[voa_class] = 1053642113
  597. ORDER BY xj1 DESC,
  598.          col1SELECT    a.[voa_class]                   AS COL1,
  599.           a.[alternative_text_]           AS COL2,
  600.           b.[alternativetext_en]          AS COL3,
  601.           c.[alternativetext_en_us]       AS COL4,
  602.           a.[description_]                AS COL5,
  603.           a.[title_]                      AS COL6,
  604.           a.[title_aa]                    AS COL7,
  605.           a.[title_ar_ma]                 AS COL8,
  606.           a.[title_bg_bg]                 AS COL9,
  607.           a.[title_de_de]                 AS COL10,
  608.           a.[title_en]                    AS COL11,
  609.           a.[title_en_us]                 AS COL12,
  610.           a.[title_fr_fr]                 AS COL13,
  611.           a.[title_sr_cyrl_ba]            AS COL14,
  612.           a.[title_tr_tr]                 AS COL15,
  613.           a.[url_name_]                   AS COL16,
  614.           a.[allow_comments]              AS COL17,
  615.           a.[allow_track_backs]           AS COL18,
  616.           a.[app_name]                    AS COL19,
  617.           a.[approve_comments]            AS COL20,
  618.           a.[content_state]               AS COL21,
  619.           a.[date_created]                AS COL22,
  620.           a.[default_page_id]             AS COL23,
  621.           a.[draft_culture]               AS COL24,
  622.           a.[email_author]                AS COL25,
  623.           a.[expiration_date]             AS COL26,
  624.           a.[include_in_sitemap]          AS COL27,
  625.           a.[last_modified]               AS COL28,
  626.           a.[last_modified_by]            AS COL29,
  627.           a.[original_content_id]         AS COL30,
  628.           a.[ownr]                        AS COL31,
  629.           a.[post_rights]                 AS COL32,
  630.           a.[publication_date]            AS COL33,
  631.           a.[source_key]                  AS COL34,
  632.           a.[STATUS]                      AS COL35,
  633.           a.[vrsion]                      AS COL36,
  634.           a.[views_count]                 AS COL37,
  635.           a.[visible]                     AS COL38,
  636.           a.[votes_count]                 AS COL39,
  637.           a.[votes_sum]                   AS COL40,
  638.           a.[approval_workflow_state_]    AS COL41,
  639.           b.[approvalworkflowstate_en]    AS COL42,
  640.           c.[approvalworkflowstate_en_us] AS COL43,
  641.           a.[author_]                     AS COL44,
  642.           b.[author_en]                   AS COL45,
  643.           c.[author_en_us]                AS COL46,
  644.           b.[description_en]              AS COL47,
  645.           c.[description_en_us]           AS COL48,
  646.           a.[item_default_url_]           AS COL49,
  647.           b.[itemdefaulturl_en]           AS COL50,
  648.           c.[itemdefaulturl_en_us]        AS COL51,
  649.           a.[media_file_url_name_]        AS COL52,
  650.           b.[mediafileurlname_en]         AS COL53,
  651.           c.[mediafileurlname_en_us]      AS COL54,
  652.           b.[urlname_en]                  AS COL55,
  653.           c.[urlname_en_us]               AS COL56,
  654.           a.[blob_storage]                AS COL57,
  655.           a.[can_inherit_permissions]     AS COL58,
  656.           a.[folder_id]                   AS COL59,
  657.           a.[inherits_permissions]        AS COL60,
  658.           a.[tmb_regen]                   AS COL61,
  659.           a.[ordinal]                     AS COL62,
  660.           a.[parent_id]                   AS COL63,
  661.           a.[parent_id]                   AS COL64,
  662.           a.[tmb_vrsn]                    AS COL65,
  663.           a.[uploaded]                    AS COL66,
  664.           a.[lgcy_tmb_strg]               AS COL67,
  665.           a.[was_published]               AS COL68,
  666.           a.[voa_version]                 AS COL69,
  667.           d.[id]                          AS COL70,
  668.           d.[app_name]                    AS COL71,
  669.           d.[content_id]                  AS COL72,
  670.           d.[chunk_size]                  AS COL73,
  671.           d.[culture]                     AS COL74,
  672.           d.[default_url]                 AS COL75,
  673.           d.[extension]                   AS COL76,
  674.           d.[file_id]                     AS COL77,
  675.           d.[file_path]                   AS COL78,
  676.           d.[height]                      AS COL79,
  677.           d.[content_id]                  AS COL80,
  678.           d.[mime_type]                   AS COL81,
  679.           d.[number_of_chunks]            AS COL82,
  680.           d.[total_size]                  AS COL83,
  681.           d.[width]                       AS COL84
  682. FROM      [sf_media_content] a
  683. LEFT JOIN [sf_media_content_en] AS b
  684. ON        (
  685.                     a.[content_id] = b.[content_id])
  686. LEFT JOIN [sf_media_content_en_us] AS c
  687. ON        (
  688.                     a.[content_id] = c.[content_id])
  689. LEFT JOIN [sf_media_file_links] AS d
  690. ON        (
  691.                     a.[content_id] = d.[content_id])
  692. WHERE     a.[content_id] = @p0SELECT   a.[content_id]   AS COL1,
  693.          b.[id]           AS COL2,
  694.          a.[date_created] AS xj1
  695. FROM     [sf_media_content] a
  696. JOIN     [sf_users] AS b
  697. ON       (
  698.                   a.[ownr] = b.[id])
  699. JOIN     [sf_libraries] AS c
  700. ON       (
  701.                   a.[parent_id] = c.[content_id])
  702. WHERE    c.[content_id] = @p0
  703. AND      a.[app_name] = @p1
  704. AND      (
  705.                   c.[content_id] IN (@p2,
  706.                                      @p3,
  707.                                      @p4,
  708.                                      @p5,
  709.                                      @p6,
  710.                                      @p7))
  711. AND      b.[app_name] = @p8
  712. AND      a.[voa_class] = 1053642113
  713. ORDER BY xj1 DESC,
  714.          col1SELECT    a.[voa_class]                   AS COL1,
  715.           a.[alternative_text_]           AS COL2,
  716.           b.[alternativetext_en]          AS COL3,
  717.           c.[alternativetext_en_us]       AS COL4,
  718.           a.[description_]                AS COL5,
  719.           a.[title_]                      AS COL6,
  720.           a.[title_aa]                    AS COL7,
  721.           a.[title_ar_ma]                 AS COL8,
  722.           a.[title_bg_bg]                 AS COL9,
  723.           a.[title_de_de]                 AS COL10,
  724.           a.[title_en]                    AS COL11,
  725.           a.[title_en_us]                 AS COL12,
  726.           a.[title_fr_fr]                 AS COL13,
  727.           a.[title_sr_cyrl_ba]            AS COL14,
  728.           a.[title_tr_tr]                 AS COL15,
  729.           a.[url_name_]                   AS COL16,
  730.           a.[allow_comments]              AS COL17,
  731.           a.[allow_track_backs]           AS COL18,
  732.           a.[app_name]                    AS COL19,
  733.           a.[approve_comments]            AS COL20,
  734.           a.[content_state]               AS COL21,
  735.           a.[date_created]                AS COL22,
  736.           a.[default_page_id]             AS COL23,
  737.           a.[draft_culture]               AS COL24,
  738.           a.[email_author]                AS COL25,
  739.           a.[expiration_date]             AS COL26,
  740.           a.[include_in_sitemap]          AS COL27,
  741.           a.[last_modified]               AS COL28,
  742.           a.[last_modified_by]            AS COL29,
  743.           a.[original_content_id]         AS COL30,
  744.           a.[ownr]                        AS COL31,
  745.           a.[post_rights]                 AS COL32,
  746.           a.[publication_date]            AS COL33,
  747.           a.[source_key]                  AS COL34,
  748.           a.[STATUS]                      AS COL35,
  749.           a.[vrsion]                      AS COL36,
  750.           a.[views_count]                 AS COL37,
  751.           a.[visible]                     AS COL38,
  752.           a.[votes_count]                 AS COL39,
  753.           a.[votes_sum]                   AS COL40,
  754.           a.[approval_workflow_state_]    AS COL41,
  755.           b.[approvalworkflowstate_en]    AS COL42,
  756.           c.[approvalworkflowstate_en_us] AS COL43,
  757.           a.[author_]                     AS COL44,
  758.           b.[author_en]                   AS COL45,
  759.           c.[author_en_us]                AS COL46,
  760.           b.[description_en]              AS COL47,
  761.           c.[description_en_us]           AS COL48,
  762.           a.[item_default_url_]           AS COL49,
  763.           b.[itemdefaulturl_en]           AS COL50,
  764.           c.[itemdefaulturl_en_us]        AS COL51,
  765.           a.[media_file_url_name_]        AS COL52,
  766.           b.[mediafileurlname_en]         AS COL53,
  767.           c.[mediafileurlname_en_us]      AS COL54,
  768.           b.[urlname_en]                  AS COL55,
  769.           c.[urlname_en_us]               AS COL56,
  770.           a.[blob_storage]                AS COL57,
  771.           a.[can_inherit_permissions]     AS COL58,
  772.           a.[folder_id]                   AS COL59,
  773.           a.[inherits_permissions]        AS COL60,
  774.           a.[tmb_regen]                   AS COL61,
  775.           a.[ordinal]                     AS COL62,
  776.           a.[parent_id]                   AS COL63,
  777.           a.[parent_id]                   AS COL64,
  778.           a.[tmb_vrsn]                    AS COL65,
  779.           a.[uploaded]                    AS COL66,
  780.           a.[lgcy_tmb_strg]               AS COL67,
  781.           a.[was_published]               AS COL68,
  782.           a.[voa_version]                 AS COL69,
  783.           d.[id]                          AS COL70,
  784.           d.[app_name]                    AS COL71,
  785.           d.[content_id]                  AS COL72,
  786.           d.[chunk_size]                  AS COL73,
  787.           d.[culture]                     AS COL74,
  788.           d.[default_url]                 AS COL75,
  789.           d.[extension]                   AS COL76,
  790.           d.[file_id]                     AS COL77,
  791.           d.[file_path]                   AS COL78,
  792.           d.[height]                      AS COL79,
  793.           d.[content_id]                  AS COL80,
  794.           d.[mime_type]                   AS COL81,
  795.           d.[number_of_chunks]            AS COL82,
  796.           d.[total_size]                  AS COL83,
  797.           d.[width]                       AS COL84
  798. FROM      [sf_media_content] a
  799. LEFT JOIN [sf_media_content_en] AS b
  800. ON        (
  801.                     a.[content_id] = b.[content_id])
  802. LEFT JOIN [sf_media_content_en_us] AS c
  803. ON        (
  804.                     a.[content_id] = c.[content_id])
  805. LEFT JOIN [sf_media_file_links] AS d
  806. ON        (
  807.                     a.[content_id] = d.[content_id])
  808. WHERE     a.[content_id] = @p0SELECT   a.[content_id]   AS COL1,
  809.          b.[id]           AS COL2,
  810.          a.[date_created] AS xj1
  811. FROM     [sf_media_content] a
  812. JOIN     [sf_users] AS b
  813. ON       (
  814.                   a.[ownr] = b.[id])
  815. JOIN     [sf_libraries] AS c
  816. ON       (
  817.                   a.[parent_id] = c.[content_id])
  818. WHERE    c.[content_id] = @p0
  819. AND      a.[app_name] = @p1
  820. AND      (
  821.                   c.[content_id] IN (@p2,
  822.                                      @p3,
  823.                                      @p4,
  824.                                      @p5,
  825.                                      @p6,
  826.                                      @p7))
  827. AND      b.[app_name] = @p8
  828. AND      a.[voa_class] = 1053642113
  829. ORDER BY xj1 DESC,
  830.          col1SELECT    a.[voa_class]                   AS COL1,
  831.           a.[alternative_text_]           AS COL2,
  832.           b.[alternativetext_en]          AS COL3,
  833.           c.[alternativetext_en_us]       AS COL4,
  834.           a.[description_]                AS COL5,
  835.           a.[title_]                      AS COL6,
  836.           a.[title_aa]                    AS COL7,
  837.           a.[title_ar_ma]                 AS COL8,
  838.           a.[title_bg_bg]                 AS COL9,
  839.           a.[title_de_de]                 AS COL10,
  840.           a.[title_en]                    AS COL11,
  841.           a.[title_en_us]                 AS COL12,
  842.           a.[title_fr_fr]                 AS COL13,
  843.           a.[title_sr_cyrl_ba]            AS COL14,
  844.           a.[title_tr_tr]                 AS COL15,
  845.           a.[url_name_]                   AS COL16,
  846.           a.[allow_comments]              AS COL17,
  847.           a.[allow_track_backs]           AS COL18,
  848.           a.[app_name]                    AS COL19,
  849.           a.[approve_comments]            AS COL20,
  850.           a.[content_state]               AS COL21,
  851.           a.[date_created]                AS COL22,
  852.           a.[default_page_id]             AS COL23,
  853.           a.[draft_culture]               AS COL24,
  854.           a.[email_author]                AS COL25,
  855.           a.[expiration_date]             AS COL26,
  856.           a.[include_in_sitemap]          AS COL27,
  857.           a.[last_modified]               AS COL28,
  858.           a.[last_modified_by]            AS COL29,
  859.           a.[original_content_id]         AS COL30,
  860.           a.[ownr]                        AS COL31,
  861.           a.[post_rights]                 AS COL32,
  862.           a.[publication_date]            AS COL33,
  863.           a.[source_key]                  AS COL34,
  864.           a.[STATUS]                      AS COL35,
  865.           a.[vrsion]                      AS COL36,
  866.           a.[views_count]                 AS COL37,
  867.           a.[visible]                     AS COL38,
  868.           a.[votes_count]                 AS COL39,
  869.           a.[votes_sum]                   AS COL40,
  870.           a.[approval_workflow_state_]    AS COL41,
  871.           b.[approvalworkflowstate_en]    AS COL42,
  872.           c.[approvalworkflowstate_en_us] AS COL43,
  873.           a.[author_]                     AS COL44,
  874.           b.[author_en]                   AS COL45,
  875.           c.[author_en_us]                AS COL46,
  876.           b.[description_en]              AS COL47,
  877.           c.[description_en_us]           AS COL48,
  878.           a.[item_default_url_]           AS COL49,
  879.           b.[itemdefaulturl_en]           AS COL50,
  880.           c.[itemdefaulturl_en_us]        AS COL51,
  881.           a.[media_file_url_name_]        AS COL52,
  882.           b.[mediafileurlname_en]         AS COL53,
  883.           c.[mediafileurlname_en_us]      AS COL54,
  884.           b.[urlname_en]                  AS COL55,
  885.           c.[urlname_en_us]               AS COL56,
  886.           a.[blob_storage]                AS COL57,
  887.           a.[can_inherit_permissions]     AS COL58,
  888.           a.[folder_id]                   AS COL59,
  889.           a.[inherits_permissions]        AS COL60,
  890.           a.[tmb_regen]                   AS COL61,
  891.           a.[ordinal]                     AS COL62,
  892.           a.[parent_id]                   AS COL63,
  893.           a.[parent_id]                   AS COL64,
  894.           a.[tmb_vrsn]                    AS COL65,
  895.           a.[uploaded]                    AS COL66,
  896.           a.[lgcy_tmb_strg]               AS COL67,
  897.           a.[was_published]               AS COL68,
  898.           a.[voa_version]                 AS COL69,
  899.           d.[id]                          AS COL70,
  900.           d.[app_name]                    AS COL71,
  901.           d.[content_id]                  AS COL72,
  902.           d.[chunk_size]                  AS COL73,
  903.           d.[culture]                     AS COL74,
  904.           d.[default_url]                 AS COL75,
  905.           d.[extension]                   AS COL76,
  906.           d.[file_id]                     AS COL77,
  907.           d.[file_path]                   AS COL78,
  908.           d.[height]                      AS COL79,
  909.           d.[content_id]                  AS COL80,
  910.           d.[mime_type]                   AS COL81,
  911.           d.[number_of_chunks]            AS COL82,
  912.           d.[total_size]                  AS COL83,
  913.           d.[width]                       AS COL84
  914. FROM      [sf_media_content] a
  915. LEFT JOIN [sf_media_content_en] AS b
  916. ON        (
  917.                     a.[content_id] = b.[content_id])
  918. LEFT JOIN [sf_media_content_en_us] AS c
  919. ON        (
  920.                     a.[content_id] = c.[content_id])
  921. LEFT JOIN [sf_media_file_links] AS d
  922. ON        (
  923.                     a.[content_id] = d.[content_id])
  924. WHERE     a.[content_id] = @p0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement