I'm trying to find folders that are not in used when files are uploaded. I have 2 tables -
- folder table - where folder names are store (
folderID, folderName, userID
) - files table - where the files are uploaded to (
fileID, fileName, folderName, userID
)
When a user uploads a file, they select a folder name from the folders table and then proceed.
I'm trying to find the folder names that are not used by the user, which are stored in the folders table but i can't figure out the correct sql statement to find those unused folders.