Re: Edit button for custom views
Reply #2 –
Ok. Is there a way I can put in a custom SQL? For my custom view I have the following SQL Querry
SELECT c.id, c.name, c.location, u.first_name
FROM cars AS c
INNER JOIN car_access as ca
ON c.id = ca.car_id
INNER JOIN users AS u
ON ca.user_id = u.id
WHERE u.id=".USER_ID." AND (ca.access_id = 1 OR ca.access_id = 2 OR ca.access_id = 3)
So I am joining 3 tables.