daily pastebin goal
70%
SHARE
TWEET

Untitled

a guest Sep 23rd, 2016 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT SUBSTRING(user__field_fio.field_fio_value, 1, 1) AS field_fio_value_truncated,
  2.        COUNT(users_field_data.uid) AS num_records,
  3.        'company:attachment_1' AS view_name,
  4.        MIN(users_field_data.uid) AS UID,
  5.        MIN(node_field_data_users_field_data.nid) AS node_field_data_users_field_data_nid
  6. FROM {users_field_data} users_field_data
  7. LEFT JOIN {node_field_data} node_field_data_users_field_data ON
  8.   (SELECT node_field_dataINNER.nid AS nidINNER
  9.    FROM {node_field_data} node_field_dataINNER
  10.    LEFT JOIN {users_field_data} users_field_data_node_field_dataINNER ON "node_field_dataINNER".uid = "users_field_data_node_field_dataINNER".uid
  11.    WHERE ((("users_field_data_node_field_dataINNER".uid = users_field_data.uid1)))
  12.    ORDER BY node_field_dataINNER.nid DESC LIMIT 1
  13.    OFFSET 0) = node_field_data_users_field_data.nid
  14. LEFT JOIN {user__field_company} user__field_company ON users_field_data.uid = user__field_company.entity_id
  15. AND (user__field_company.deleted = :views_join_condition_0
  16.      AND user__field_company.langcode = users_field_data.langcode)
  17. LEFT JOIN {user__field_fio} user__field_fio ON users_field_data.uid = user__field_fio.entity_id
  18. AND (user__field_fio.deleted = :views_join_condition_2
  19.      AND user__field_fio.langcode = users_field_data.langcode)
  20. WHERE (((users_field_data.status = :db_condition_placeholder_4)
  21.         AND (user__field_company.field_company_value = :db_condition_placeholder_5)))
  22. GROUP BY field_fio_value_truncated,
  23.          view_name
  24. ORDER BY field_fio_value_truncated ASC LIMIT 10
  25. OFFSET 0;
  26.  
  27. Array ([:db_condition_placeholder_4] => 1 [:db_condition_placeholder_5] => 1 [:views_join_condition_0] => 0 [:views_join_condition_2] => 0)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top