The above should do the trick as that is the same principal as you will get all values of tblFolders first and then only the values that are not in tblFolders which will give you all values of both tables with the common values labelled as Folder instead of Group.

The above was for simplicity sake, you may want to type out the column names and alias them how you want to show in the report since you are combining tables the predefined column names may not make sense after UNION.

SELECT Col1 AS FolderType, Col2 AS FolderRights, FolderNameColumn AS FolderName
FROM tblFolders
UNION ALL
SELECT Col1, Col2, FolderNameColumn
FROM tblGroups g
WHERE NOT EXISTS (SELECT 1 FROM tblFolders f WHERE f.FolderNameColumn = g.FolderNameColumn)

As they say in love and is true in SQL: you can sum some Data some of the time, but you can't always aggregate all Data all the time!
Introduction:
By the end of this Article it is my intention to bring the meaning and value of the above quote to…

If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…

Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…