Hi,
I have to 2 tables, with among others the following columns:
Table 1:
- uniqueid
- memberid
Table 2:
- uniqueid
- fullmember
I want to search in both tables where uniqueid matches in both tables and fullmember in Table 2 is '1'.
The problem I am having is the desired output. Ideally it should output a Total Number based on memberid in table 1, it should also output the value for this specific memberid and ideally the results should be ordered based on the Total Number with the highest number at the top.
Is this doable with a single mysql query?
Thanks!