Complicated Queries? menu

User Tag List

Results 1 to 13 of 13
  1. #1
    fastelf's Avatar Active Member
    Reputation
    44
    Join Date
    Apr 2007
    Posts
    279
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Complicated Queries?

    Does anyone know a query code for this:

    Delete all items which aren't in vendors.

    Complicated Queries?
  2. #2
    Xeneth's Avatar Member
    Reputation
    157
    Join Date
    Oct 2007
    Posts
    534
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You'd have to empty the creature loot tables, if that's what you mean.


  3. #3
    fastelf's Avatar Active Member
    Reputation
    44
    Join Date
    Apr 2007
    Posts
    279
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dude, thats not even related to what i was on about.

    Delete ALL items which AREN"T in the vendors, if they are in vendor the item doesn't get deleted.

  4. #4
    Xeneth's Avatar Member
    Reputation
    157
    Join Date
    Oct 2007
    Posts
    534
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you said all items that aren't in vendors

    only other place to get items are from drops

    delete the loot tables, creatures don't have drops

    only way to get items are from vendors.


  5. #5
    jamiebabs's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    items would still be there if you wanted to add items to vendors but that works

  6. #6
    fastelf's Avatar Active Member
    Reputation
    44
    Join Date
    Apr 2007
    Posts
    279
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Xeneth, Your completely IGNORING what i want.

    I don't give a shit about about the drops, i can wipe them like there nothing.

    I want a QUERY CODE to delete ALL ITEMS WHICH AREN"T IN VENDORS! If they are in vendors then the query won't delete them.

  7. #7
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use PHP. It'll take some time though ;P
    Deleting the drops is an easier solution. You'll have to drop that table anyways.

  8. #8
    fastelf's Avatar Active Member
    Reputation
    44
    Join Date
    Apr 2007
    Posts
    279
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't see how PHP has anything to do with SQL Queries.

  9. #9
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's a hint: You can use PHP as a programmable wrapper for SQL.

  10. #10
    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)
    hmm easy one:
    Code:
    DELETE FROM items WHERE NOT entry IN (SELECT item FROM vendors);
    deletes all items from item table that are not sold by vendors...

    tested and working on a blizzlike DB, note: takes a while to execute :P

    grtz

    edit: i know they are not on the first pages anymore but they still help a lot if people only read them:
    http://www.mmowned.com/forums/emulat...e-queries.html
    http://www.mmowned.com/forums/emulat...-part-2-a.html
    Last edited by latruwski; 03-19-2008 at 06:33 AM.

  11. #11
    fastelf's Avatar Active Member
    Reputation
    44
    Join Date
    Apr 2007
    Posts
    279
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks mate!

    +Rep for helping me.

  12. #12
    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 fastelf View Post
    Thanks mate!

    +Rep for helping me.
    no problem, that is what we are here for

  13. #13
    ~ViVo~'s Avatar Banned
    Reputation
    52
    Join Date
    Feb 2008
    Posts
    560
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I'm saving that query.

Similar Threads

  1. [Race Edits] Complication of My Race swaps
    By Gone Phishing BBL in forum World of Warcraft Model Editing
    Replies: 10
    Last Post: 09-29-2007, 01:55 PM
  2. Query error
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 09-29-2007, 12:59 PM
  3. need a query
    By Tankotron in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 09-09-2007, 10:28 AM
  4. Elite group query
    By Shanaar in forum Community Chat
    Replies: 0
    Last Post: 07-12-2006, 03:02 PM
  5. less complicated?
    By JesseG18 in forum World of Warcraft General
    Replies: 7
    Last Post: 03-15-2006, 02:47 AM
All times are GMT -5. The time now is 06:37 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