mysql - Joining multiple tables in the same query in sql -


i have 4 tables need join return results sms gateway. columns need output tblmembers.name , tblmembers.number.

i need able change following conditions according application structure should stay same on query, columns need able filter are: tblmembers.sms, tblmembers.country_zone_id, tblmembers.country_id, tblmembers.birthdate (between x y), tblmembers.gender, tblmembers.campid, tblmembers.poe, second table tblmembertiers.status (this needs newest entry), third table accounttrans.amount (i need able calculate average earn/redeem , select top x members), accounttrans.mercantid(need return members have been store x or more times. last table accounts.balance (need able return members average balance of x)

so need query can sqecify values given columns , have valid results returned.

thanks help!


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -