PHP ver gevorderde |
|
SELECT us.username, g.rank
FROM users as us, groups as g, usergroupacces as u
WHERE u.member_id = us.id
AND u.group_id = g.id
SELECT us.username, g.rank FROM users AS us, groups AS g, usergroupacces AS u WHERE u.member_id = us.id AND u.group_id = g.id
Werkt evengoed, en is een makkelijker te begrijpen query |