[Uber] User-Furniture [SQL]

Results 1 to 15 of 15
  1. #1
    Enthusiast Saia is offline
    MemberRank
    Apr 2011 Join Date
    CanadaLocation
    26Posts

    config [Uber] User-Furniture [SQL]

    I noticed that a few people needed a way to keep track of duped furniture, staff giving away furniture, etc. I have devised a unique query specifically for Uber to aid in tracking all of this down.

    Search a Username:

    Replace the red with the username.

    Code:
    SELECT DISTINCT u.id AS 'User ID', u.username AS 'Username', u.rank AS 'Rank', ui.base_item AS 'Furniture ID', (SELECT f.public_name FROM furniture f WHERE f.id = ui.base_item LIMIT 0,1) AS 'Furniture Name', (SELECT COUNT(uiq2.base_item) FROM user_items uiq2 WHERE uiq2.base_item = ui.base_item) AS 'Count'
    FROM user_items ui
    INNER JOIN users u
    ON ui.user_id = u.id
    WHERE ui.user_id = (SELECT uq2.id FROM users uq2 WHERE uq2.username = 'USERNAME' LIMIT 0,1)
    ORDER BY u.id ASC
    Display All:

    Code:
    SELECT DISTINCT u.id AS 'User ID', u.username AS 'Username', u.rank AS 'Rank', ui.base_item AS 'Furniture ID', (SELECT f.public_name FROM furniture f WHERE f.id = ui.base_item LIMIT 0,1) AS 'Furniture Name', (SELECT COUNT(uiq2.base_item) FROM user_items uiq2 WHERE uiq2.base_item = ui.base_item) AS 'Count'
    FROM user_items ui
    INNER JOIN users u
    ON ui.user_id = u.id
    ORDER BY u.id ASC
    Credits:

    Saia (saia.zurchmora@gmail.com).
    Last edited by Saia; 12-04-11 at 05:03 AM.


  2. #2
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: Uber Checking [Valuable]

    wtf means this?

  3. #3
    Banned PEjump2 is offline
    BannedRank
    Jan 2010 Join Date
    The NetherlandsLocation
    2,838Posts

    Re: Uber Checking [Valuable]

    @wichard A simple query to check for all user items or 1 item etc, Thanks for releasing this, but it ain't rly needed :P

  4. #4
    HTML,CSS and a bit C# Richardjuhh is offline
    MemberRank
    Dec 2010 Join Date
    NetherlandsLocation
    351Posts

    Re: [Uber] User-Furniture Checking

    Oh, i thinks this is the first girl who can make a retro :D

  5. #5
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: [Uber] User-Furniture Checking

    Quote Originally Posted by Richardjuhh View Post
    Oh, i thinks this is the first girl who can make a retro :D
    Maby is that so, But see knows how to do

  6. #6
    The Legend Returns vista4life is offline
    MemberRank
    Mar 2007 Join Date
    The NetherlandsLocation
    843Posts

    Re: [Uber] User-Furniture Checking

    Quote Originally Posted by Saia View Post
    I noticed that a few people needed a way to keep track of duped furniture, staff giving away furniture, etc. I have devised a unique query specifically for Uber to aid in tracking all of this down.

    Search a Username:

    Replace the red with the username.

    Code:
    SELECT  ui.user_id AS 'User ID', (SELECT u.username FROM users u WHERE u.id = ui.user_id LIMIT 0,1) AS 'Username', (SELECT uq2.rank FROM users uq2 WHERE uq2.id = ui.user_id LIMIT 0,1) AS 'Rank', f.id AS 'Furniture ID', f.public_name AS 'Furniture Name', (SELECT COUNT(uiq2.base_item) FROM user_items uiq2 WHERE uiq2.base_item = ui.base_item) AS 'Count'
    FROM user_items ui
    INNER JOIN furniture f
    ON f.id = ui.base_item
    WHERE ui.user_id = (SELECT uq2.id FROM users uq2 WHERE uq2.username = 'USERNAME' LIMIT 0,1)
    ORDER BY f.public_name ASC
    Display All:

    Code:
    SELECT  ui.user_id AS 'User ID', (SELECT u.username FROM users u WHERE u.id = ui.user_id LIMIT 0,1) AS 'Username', (SELECT uq2.rank FROM users uq2 WHERE uq2.id = ui.user_id LIMIT 0,1) AS 'Rank', f.id AS 'Furniture ID', f.public_name AS 'Furniture Name', (SELECT COUNT(uiq2.base_item) FROM user_items uiq2 WHERE uiq2.base_item = ui.base_item) AS 'Count'
    FROM user_items ui
    INNER JOIN furniture f
    ON f.id = ui.base_item
    ORDER BY ui.user_id ASC
    Credits:

    Saia (saia.zurchmora@gmail.com).
    looks okey but let me guess you made this with navicat :D?

    anyway Thanks.

  7. #7
    Enthusiast Saia is offline
    MemberRank
    Apr 2011 Join Date
    CanadaLocation
    26Posts

    Re: [Uber] User-Furniture Checking

    Quote Originally Posted by vista4life View Post
    looks okey but let me guess you made this with navicat :D?

    anyway Thanks.
    Just because you do not know SQL nor understand a remote amount of how SQL works, does not mean that someone else (such as myself) doesn't understand how SQL works, and how to code it properly.

    Just a quick FYI, this was coded 20 minutes prior to me coming to high school this morning. I took a quick glimpse at the Uber database structures and developed that.

  8. #8
    The Legend Returns vista4life is offline
    MemberRank
    Mar 2007 Join Date
    The NetherlandsLocation
    843Posts

    Re: [Uber] User-Furniture Checking

    Quote Originally Posted by Saia View Post
    Just because you do not know SQL nor understand a remote amount of how SQL works, does not mean that someone else (such as myself) doesn't understand how SQL works, and how to code it properly.

    Just a quick FYI, this was coded 20 minutes prior to me coming to high school this morning. I took a quick glimpse at the Uber database structures and developed that.
    WHAHAHAHAHAHAHA your so funny i like it , but you know nothing about me ;)

  9. #9
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: [Uber] User-Furniture Checking

    Or, just make a Cached idgenerator like Matty13 did =)

  10. #10
    Enthusiast Saia is offline
    MemberRank
    Apr 2011 Join Date
    CanadaLocation
    26Posts

    Re: [Uber] User-Furniture Checking

    Quote Originally Posted by wichard View Post
    Or, just make a Cached idgenerator like Matty13 did =)
    I don't think you understand the point of this release. This is to track furniture duplication, staff giving away furniture, hacked furniture... not generating furniture ID's.

  11. #11
    Account Upgraded | Title Enabled! salah-salah is offline
    MemberRank
    Jan 2009 Join Date
    UndergroundLocation
    716Posts

    Re: [Uber] User-Furniture Checking

    Thanks for this release:)

  12. #12
    Enthusiast Saia is offline
    MemberRank
    Apr 2011 Join Date
    CanadaLocation
    26Posts

    Re: [Uber] User-Furniture Checking

    Quote Originally Posted by vista4life View Post
    WHAHAHAHAHAHAHA your so funny i like it , but you know nothing about me ;)
    You are right, I do not know anything about you. Should I?

  13. #13
    The Legend Returns vista4life is offline
    MemberRank
    Mar 2007 Join Date
    The NetherlandsLocation
    843Posts

    Re: [Uber] User-Furniture Checking

    Quote Originally Posted by Saia View Post
    You are right, I do not know anything about you. Should I?
    yes , so you automatically draw conclusions xD

  14. #14
    Enthusiast Saia is offline
    MemberRank
    Apr 2011 Join Date
    CanadaLocation
    26Posts

    Re: [Uber] User-Furniture Checking

    Quote Originally Posted by vista4life View Post
    yes , so you automatically draw conclusions xD
    As you did regarding me.

  15. #15
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,484Posts

    Re: [Uber] User-Furniture [SQL]

    It's just querys? :O



Advertisement