Advertisement
Sansuall

Запрос по гильдии

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