I have three tables for storing tags for photo albums. Here is a diagram
table 1:
Album
Album_ID Album_Name
table 2: AlbumTags
tag_id
Tag_Name
table 3: AlbumTagBridge
ID
tag_id
Album_ID
What is the most efficient SQL capable of creating a result set that looks like this:
Tag_Name | Number
Tag 1 | 19
Tag 2 | 3
Tag 3 | 17
source
share