Advertisement
Sansuall

Запрос по персонажу

Oct 22nd, 2023 (edited)
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.45 KB | None | 0 0
  1. -- По персонажу: https://wowroad.info/?item=45977
  2. SELECT
  3.  characters.guid,
  4.  characters.account,
  5.  characters.name,
  6.  characters.level,
  7.  SUM( item_instance.count ) as total_count
  8. FROM
  9.  characters
  10.  INNER JOIN item_instance ON characters.guid = item_instance.owner_guid
  11. WHERE
  12.  item_instance.itemEntry = 45977
  13. GROUP BY
  14.  characters.guid
  15.  HAVING
  16. total_count > 19;
  17.  
  18.  
  19.  
  20. -- https://wowroad.info/?item=40211
  21. SELECT
  22.  characters.guid,
  23.  characters.account,
  24.  characters.name,
  25.  characters.level,
  26.  SUM( item_instance.count ) as total_count
  27. FROM
  28.  characters
  29.  INNER JOIN item_instance ON characters.guid = item_instance.owner_guid
  30. WHERE
  31.  item_instance.itemEntry = 40211
  32. GROUP BY
  33.  characters.guid
  34.  HAVING
  35. total_count > 800;
  36.  
  37.  
  38.  
  39. -- https://wowroad.info/?item=33447
  40. SELECT
  41.  characters.guid,
  42.  characters.account,
  43.  characters.name,
  44.  characters.level,
  45.  SUM( item_instance.count ) as total_count
  46. FROM
  47.  characters
  48.  INNER JOIN item_instance ON characters.guid = item_instance.owner_guid
  49. WHERE
  50.  item_instance.itemEntry = 33447
  51. GROUP BY
  52.  characters.guid
  53.  HAVING
  54. total_count > 800;
  55.  
  56.  
  57.  
  58. -- https://wowroad.info/?item=33448
  59. SELECT
  60.  characters.guid,
  61.  characters.account,
  62.  characters.name,
  63.  characters.level,
  64.  SUM( item_instance.count ) as total_count
  65. FROM
  66.  characters
  67.  INNER JOIN item_instance ON characters.guid = item_instance.owner_guid
  68. WHERE
  69.  item_instance.itemEntry = 33448
  70. GROUP BY
  71.  characters.guid
  72.  HAVING
  73. total_count > 800;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement