|
|||||||||||||||||
|
|||||
SQL Queries | ||
---|---|---|
SELECT `config_name`, `config_value` FROM `roster_config` ORDER BY `id` ASC; SELECT * FROM `roster_guild` WHERE `guild_name` = 'Legion of Sun' AND `server` = 'Perenolde' SELECT m.member_id, m.name as member_name, m.note as member_note, m.officer_note as member_officer_note, i.*, sum(i.item_quantity) as total_quantity FROM `roster_items` as i, `roster_members` as m WHERE i.member_id=m.member_id AND m.note LIKE '%BankMule%' AND i.item_parent!='bags' AND i.item_parent!='equip' AND (i.item_tooltip NOT LIKE '%Seelengebunden%' OR i.item_tooltip LIKE '%Wird beim Anlegen gebunden%') GROUP BY i.item_name SELECT m.member_id, m.name as member_name, m.note as member_note, m.officer_note as member_officer_note, i.* FROM `roster_items` as i, `roster_members` as m WHERE i.member_id=m.member_id AND m.note LIKE '%BankMule%' AND i.item_parent!='bags' AND i.item_parent!='equip' AND (i.item_tooltip NOT LIKE '%Seelengebunden%' OR i.item_tooltip LIKE '%Wird beim Anlegen gebunden%') ORDER BY i.item_name SELECT `guild_id`, `guild_dateupdatedutc` FROM `roster_guild` WHERE `guild_name` = 'Legion of Sun' AND `server` ='Perenolde' SELECT IF(`note` LIKE '%alt%',1,0) AS 'isalt', FLOOR(`level`/10) AS levelgroup, COUNT(`level`) AS amount, SUM(`level`) AS sum FROM `roster_members` GROUP BY isalt, levelgroup ORDER BY isalt ASC, levelgroup DESC SELECT SUM( p.money_g ) AS gold, SUM( p.money_s ) AS silver, SUM( p.money_c ) as copper FROM `roster_players` AS p, `roster_members` AS m WHERE m.note LIKE '%BankMule%' AND p.member_id = m.member_id ORDER BY m.name |
||