thanks for the reply, i tried your code and it didn't seam to work, I then tried to modify it and try a lot of different things, and still couldn't make it work.
SELECT SUBGROUPS.*, (SELECT TAGS.ID, ALARMS.* FROM TAGS RIGHT JOIN ALARMS ON TAGS.NAME1=ALARMS.NAME1;) AS QUERY1temp
FROM SUBGROUPS...