Advertisement
Guest User

Untitled

a guest
Dec 15th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.47 KB | None | 0 0
  1. SELECT DISTINCT
  2. property0_.id AS id1_20_,
  3. propertyca2_.volume,
  4. propertyca2_.number,
  5. propertyca2_.artist_catalogue_raisonee_id,
  6. property0_.authentication AS authenti2_20_,
  7. property0_.certificate AS certific3_20_,
  8. property0_.signed AS signed4_20_,
  9. property0_.stamped AS stamped5_20_,
  10. property0_.category_id AS categor68_20_,
  11. property0_.created_by AS created69_20_,
  12. property0_.created_date AS created_6_20_,
  13. property0_.cast_year_circa AS cast_yea7_20_,
  14. property0_.cast_year_end AS cast_yea8_20_,
  15. property0_.cast_year_start AS cast_yea9_20_,
  16. property0_.year_circa AS year_ci10_20_,
  17. property0_.year_end AS year_en11_20_,
  18. property0_.year_start AS year_st12_20_,
  19. property0_.year_text AS year_te13_20_,
  20. property0_.depth AS depth14_20_,
  21. property0_.height AS height15_20_,
  22. property0_.weight AS weight16_20_,
  23. property0_.width AS width17_20_,
  24. property0_.edition_number AS edition18_20_,
  25. property0_.artist_proof_total AS artist_19_20_,
  26. property0_.bon_a_tirer_total AS bon_a_t20_20_,
  27. property0_.cancellation_proof_total AS cancell21_20_,
  28. property0_.color_trial_proof_total AS color_t22_20_,
  29. property0_.dedicated_proof_total AS dedicat23_20_,
  30. property0_.edition_override AS edition24_20_,
  31. property0_.edition_size_notes AS edition25_20_,
  32. property0_.edition_size_total AS edition26_20_,
  33. property0_.hors_commerce_proof_total AS hors_co27_20_,
  34. property0_.museum_proof_total AS museum_28_20_,
  35. property0_.printers_proof_total AS printer29_20_,
  36. property0_.progressive_proof_total AS progres30_20_,
  37. property0_.right_to_produce_proof_total AS right_t31_20_,
  38. property0_.series_total AS series_32_20_,
  39. property0_.trial_proof_total AS trial_p33_20_,
  40. property0_.unkown_edition_type_size AS unkown_34_20_,
  41. property0_.working_proof_total AS working35_20_,
  42. property0_.edition_size_type_id AS edition70_20_,
  43. property0_.edition_type_id AS edition71_20_,
  44. property0_.unique_edition AS unique_36_20_,
  45. property0_.external_id AS externa37_20_,
  46. property0_.flag_authenticity AS flag_au38_20_,
  47. property0_.flag_condition AS flag_co39_20_,
  48. property0_.flag_medium AS flag_me40_20_,
  49. property0_.flag_restitution AS flag_re41_20_,
  50. property0_.flag_sfs AS flag_sf42_20_,
  51. property0_.flags_country_id AS flags_c72_20_,
  52. property0_.foundry AS foundry43_20_,
  53. property0_.image_path AS image_p44_20_,
  54. property0_.medium AS medium45_20_,
  55. property0_.merged_to_id AS merged_46_20_,
  56. property0_.original_title AS origina47_20_,
  57. property0_.parts AS parts48_20_,
  58. property0_.posthumous AS posthum49_20_,
  59. property0_.presize_type_id AS presize73_20_,
  60. property0_.reminder_employee AS reminde50_20_,
  61. property0_.reminder_notes_text AS reminde51_20_,
  62. property0_.researcher_notes_date AS researc52_20_,
  63. property0_.researcher_name AS researc53_20_,
  64. property0_.researcher_notes_text AS researc54_20_,
  65. property0_.signature AS signatu55_20_,
  66. property0_.size_text AS size_te56_20_,
  67. property0_.sort_code AS sort_co57_20_,
  68. property0_.status AS status58_20_,
  69. property0_.auto_image AS auto_im59_20_,
  70. property0_.auto_orientation AS auto_or60_20_,
  71. property0_.auto_scale AS auto_sc61_20_,
  72. property0_.auto_volume AS auto_vo62_20_,
  73. property0_.expertise_location AS experti63_20_,
  74. property0_.image_figure_id AS image_f74_20_,
  75. property0_.image_text AS image_t64_20_,
  76. property0_.title AS title65_20_,
  77. property0_.updated_by AS updated75_20_,
  78. property0_.updated_date AS updated66_20_,
  79. property0_.upload_reference AS upload_67_20_
  80. FROM property property0_
  81. LEFT OUTER JOIN property_property_catalogue_raisonee propertyca1_
  82. ON property0_.id = propertyca1_.property_id
  83. LEFT OUTER JOIN property_catalogue_raisonee propertyca2_
  84. ON propertyca1_.catalogue_raisonee_id = propertyca2_.id
  85. AND (propertyca2_.status = 'Active')
  86. LEFT OUTER JOIN artist_catalogue_raisonee artistcata3_
  87. ON propertyca2_.artist_catalogue_raisonee_id = artistcata3_.id
  88. LEFT OUTER JOIN property_artist artists4_
  89. ON property0_.id = artists4_.property_id
  90. LEFT OUTER JOIN artist artist5_
  91. ON artists4_.artist_id = artist5_.id
  92. WHERE (artist5_.external_id IN ('AA-00000BC4'))
  93. AND (artistcata3_.id IN (4336) OR artistcata3_.id IS NULL)
  94. AND property0_.status = 'Active'
  95. ORDER BY ISNULL(NULLIF(propertyca2_.artist_catalogue_raisonee_id, '')) asc , propertyca2_.artist_catalogue_raisonee_id asc, ISNULL(NULLIF(propertyca2_.volume, '')) asc , UPPER(propertyca2_.volume) asc, ISNULL(NULLIF(propertyca2_.number, '')) asc, UPPER(propertyca2_.number) asc;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement