m***@gmail.com
2015-01-19 16:17:42 UTC
I have two tables, data and users
data holds account information, one field called midd which defines ownership based on acctmin and acctmax fields in users
i want to pull data.* and users.*, but only limit it to where data.midd is >= 0 and <= 33. when i'm trying to write my sql query, i'm getting duplicates (becuase my results give more records than data has) and i've no doubt the solution lies somewhere with a join or something like that...
data holds account information, one field called midd which defines ownership based on acctmin and acctmax fields in users
i want to pull data.* and users.*, but only limit it to where data.midd is >= 0 and <= 33. when i'm trying to write my sql query, i'm getting duplicates (becuase my results give more records than data has) and i've no doubt the solution lies somewhere with a join or something like that...