Building my first MS Access SQL queries. That should not be this hard!
I have 2 tables:
A user belonging to GroupA
logged in. I want to show him only those Data
table rows and columns which GroupA
is assigned to, like this:
╔════════╦════════╦════════╗
║ Group ║ Data3 ║ Data4 ║
╠════════╬════════╬════════╣
║ GroupA ║ 9 ║ 4 ║
╠════════╬════════╬════════╣
║ GroupA ║ 1 ║ 5 ║
╚════════╩════════╩════════╝
I tried this silly option:
SELECT (select Data from AccessRights where GroupA = "y")
FROM Data
WHERE Data.Group = "GroupA";
Aucun commentaire:
Enregistrer un commentaire