[Release] Usefull Database Queries menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 29 of 29
  1. #16
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice man, Thanks

    [Release] Usefull Database Queries
  2. #17
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Illidan1 View Post
    Nice man, Thanks
    remember if you have ideas for a query, i'll see if i can add

    grtz

  3. #18
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    updated once again

    grtz

  4. #19
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Updated egain with a query to remove all item requirements...

    i think i am almost out of creativity ^^ anyone else got an idea?

    grtz

  5. #20
    knaur's Avatar Elite User
    Reputation
    400
    Join Date
    Nov 2007
    Posts
    634
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice nice nice =) +2 rep from me
    ------------------------------------------------------
    Knaur - Founder of The Norwegian Elite Team

  6. #21
    secretdragon008's Avatar Member
    Reputation
    43
    Join Date
    Sep 2007
    Posts
    217
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    very good,it was very very much i didt know of there.
    ty and +Rep

  7. #22
    mafiaboy's Avatar Contributor
    Reputation
    235
    Join Date
    May 2007
    Posts
    698
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +rep, this should be stickied

  8. #23
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by mafiaboy View Post
    +rep, this should be stickied
    well i don't think it will be... i made it a while ago now.. so if it was that good they would have stickied already i think ^^
    anyhow thx for the great comments

    i am thinking of new queries... if you can think of anything that can be done with queries or that you think that can be done by queries post here... cuz i am running out of ideas


    grtz
    Last edited by latruwski; 12-18-2007 at 10:45 AM.

  9. #24
    cynicalistik's Avatar Member
    Reputation
    1
    Join Date
    Nov 2007
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    found a few useful too me, thanx

  10. #25
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by cynicalistik View Post
    found a few useful too me, thanx
    no problem

  11. #26
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maintenance Queries thx to NCDB:
    Code:
    -- Delete vendors with none existing creatures/items.
    DELETE FROM `vendors` WHERE `entry` not in (SELECT `entry` from `creature_proto`);
    DELETE FROM `vendors` WHERE `item` not in (SELECT `entry` from `items`);
    
    -- Delete waypoints with none existing spawns
    DELETE FROM `creature_waypoints` WHERE `spawnid` not in (SELECT `id` from `creature_spawns`);
    
    -- Delete trainers with none existing creatures ** New table **
    DELETE FROM `trainer_spells` WHERE `entry` not in (SELECT `entry` from `creature_proto`);
    DELETE FROM `trainer_defs` WHERE `entry` not in (SELECT `entry` from `creature_proto`);
    
    -- Delete quest starter/finisher where quests doesn't exist
    DELETE FROM `creature_quest_starter` WHERE `quest` not in (SELECT `entry` from `quests`);
    DELETE FROM `creature_quest_finisher` WHERE `quest` not in (SELECT `entry` from `quests`);
    DELETE FROM `gameobject_quest_starter` WHERE `quest` not in (SELECT `entry` from `quests`);
    DELETE FROM `gameobject_quest_finisher` WHERE `quest` not in (SELECT `entry` from `quests`);
    
    -- Delete quest starter/finisher where creature/gameobject doesn't exist
    DELETE FROM `creature_quest_starter` WHERE `id` not in (SELECT `entry` from `creature_proto`);
    DELETE FROM `creature_quest_finisher` WHERE `id` not in (SELECT `entry` from `creature_proto`);
    DELETE FROM `gameobject_quest_starter` WHERE `id` not in (SELECT `entry` from `gameobject_names`);
    DELETE FROM `gameobject_quest_finisher` WHERE `id` not in (SELECT `entry` from `gameobject_names`);
    
    -- Delete loots that itemid not exists.
    DELETE FROM `itemloot` WHERE `itemid` not in (SELECT `entry` from `items`);
    DELETE FROM `objectloot` WHERE `itemid` not in (SELECT `entry` from `items`);
    DELETE FROM `creatureloot` WHERE `itemid` not in (SELECT `entry` from `items`);
    DELETE FROM `pickpocketingloot` WHERE `itemid` not in (SELECT `entry` from `items`);
    DELETE FROM `fishingloot` WHERE `itemid` not in (SELECT `entry` from `items`);
    DELETE FROM `skinningloot` WHERE `itemid` not in (SELECT `entry` from `items`);
    DELETE FROM `prospectingloot` WHERE `itemid` not in (SELECT `entry` from `items`);
    
    -- Delete loots that entryid not exists.
    DELETE FROM `itemloot` WHERE `entryid` not in (SELECT `entry` from `items`);
    DELETE FROM `prospectingloot` WHERE `entryid` not in (SELECT `entry` from `items`);
    DELETE FROM `fishingloot` WHERE `entryid` not in (SELECT `Zone` from `fishing`);
    DELETE FROM `objectloot` WHERE `entryid` not in (SELECT `entry` from `gameobject_names`);
    DELETE FROM `creatureloot` WHERE `entryid` not in (SELECT `entry` from `creature_proto`);
    DELETE FROM `pickpocketingloot` WHERE `entryid` not in (SELECT `entry` from `creature_proto`);
    DELETE FROM `skinningloot` WHERE `entryid` not in (SELECT `entry` from `creature_proto`);
    Query to order you tables again thx to NCDB:

    Code:
    ALTER TABLE `areatriggers` ORDER BY `entry` ASC;
    ALTER TABLE `creature_spawns` ORDER BY `id` ASC;
    ALTER TABLE `creature_quest_starter` ORDER BY `id` ASC, `quest` ASC;
    ALTER TABLE `creature_proto` ORDER BY `entry` ASC;
    ALTER TABLE `creature_names` ORDER BY `entry` ASC;
    ALTER TABLE `gameobject_names` ORDER BY `entry` ASC;
    ALTER TABLE `gameobject_quest_finisher` ORDER BY `id` ASC, `quest` ASC;
    ALTER TABLE `gameobject_quest_starter` ORDER BY `id` ASC, `quest` ASC;
    ALTER TABLE `gameobject_spawns` ORDER BY `id` ASC;
    ALTER TABLE `itempages` ORDER BY `entry` ASC;
    ALTER TABLE `items` ORDER BY `entry` ASC;
    ALTER TABLE `npc_text` ORDER BY `entry` ASC;
    ALTER TABLE `playercreateinfo_spells` ORDER BY `indexid` ASC;
    ALTER TABLE `quests` ORDER BY `entry` ASC;
    ALTER TABLE `recall` ORDER BY `name` ASC;
    ALTER TABLE `vendors` ORDER BY `vendorGUID` ASC, `entry` ASC;
    ALTER TABLE `weather` ORDER BY `zoneId` ASC;
    these are verry nice too forgot to add them and now i cant add to first post, it is too big xD

    grtz

  12. #27
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    in future i will add queries in a new reply.. (i cant add more to the first post ) maybe mods will be able to move the reply to the first page... i will ask..

    grtz

  13. #28
    Succy's Avatar Banned
    Reputation
    40
    Join Date
    Jun 2007
    Posts
    804
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    These are really, really nice! Should be a sticky

  14. #29
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Succy View Post
    These are really, really nice! Should be a sticky
    ty, i thought this post was doomed to die on the last page of emu discussion anyhow i made a new thread with part 2 of the queries, link is in the first post

    grtz

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Release] Usefull Database Queries [Part 2]
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 23
    Last Post: 05-16-2008, 11:14 AM
  2. [RELEASE]Snailz Databases
    By Snailz in forum World of Warcraft Emulator Servers
    Replies: 30
    Last Post: 01-30-2008, 04:44 PM
  3. [RELEASE] Venice Database Revision 121 [ +Video Included on Upcoming Event's]
    By ~SaiLyn~ in forum World of Warcraft Emulator Servers
    Replies: 21
    Last Post: 01-15-2008, 06:39 PM
  4. [Release] Starting Gear Query Generator (May be Updated)
    By wowcomputer in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 12-25-2007, 11:43 PM
  5. [Release]Blizzlike Database - Fully Functioning
    By ~SaiLyn~ in forum World of Warcraft Emulator Servers
    Replies: 17
    Last Post: 11-12-2007, 09:52 PM
All times are GMT -5. The time now is 06:13 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search