Jump to content
  • 0

Top Adena script


Question

Posted

Hi i have little problem with my top adena web script. My problem is that when someone have adena in inventory and in warehouse too, he is in top adena rank two times. One with adena in inventory and one time with adena in warehouse. I need help with command that will show only total amount of adena per user. If someone can help i will be glad :)

 

this is what i got in script:

 

WHERE builder = 0 AND account_id > 0 AND user_item.item_type = 57

ORDER BY adena DESC

 

dunno what command should have for warehouse column to count as one...

 

Thanks

1 answer to this question

Recommended Posts

  • 0
Posted

1. Look up and create complicated join\inner\union Queries.

Google instead of ask - this is SQL, not L2Off.

 

2. Write 2 queries, one with warehouse = 0 and warehouse = 1.

Add together result in php\html where matched char_id.

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..