boionfire81 Posted July 23, 2016 Posted July 23, 2016 Ok, my user table has a "residence" column and by default there are money and bank columns. I want to list the richest cities and most populated cities in the game. Now that I think about it could just do a num_rows for population. But still stuck on the queries needed to tally the money. Haven't been coding much the past couple days. Not to mention mcc hasn't been much on my mind as I'm only integrating it into a different "business" script. It was called SimLand. I've got most of the malfunctions fixed. Well at least half :P I think this is a great mix from a simple apply and login. Quote
SRB Posted July 25, 2016 Posted July 25, 2016 SELECT cityname, SUM(money) AS money, SUM(bankmoney) AS bankmoney FROM users LEFT JOIN cities ON (cities.cityid = users.residency) GROUP BY residency; Quote
SRB Posted August 9, 2016 Posted August 9, 2016 No Problem, Dude. #iHazSomeManners #PutSomeRespecOnMyName 2 Quote
boionfire81 Posted August 30, 2016 Author Posted August 30, 2016 lol. My bad man, I'm just now making it back to this thread. But thanks! Will let you know if it works out. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.