I am trying to bind some "account tables" with my users table via account_id, account_type and account_table.
How am I supposed to query the database so that I get the account_table and order by
`account_table`.`some_column`
Here is the link to some images of my DB.
Now, I can explain what I want to do over an example:
I want to order my users depending on their site_assessors.name.
select * from `users` order by (users.account_table).name desc limit 10 offset 0
This query is actually what I need, I wanna get the account_table, in this case site_assessors and query the name field of it.
Hope it's understandable...