I have 3 tables that look like this:
tblVideo:
VideoID | Video Name
1 video 1
2 video 2
3 video 3
4 video 4
tblCategory:
CategoryID | CategoryName
1 category1
2 category2
3 category3
tblVideoCategory:
VideoID | CategoryID
1 3
2 1
2 2
3 1
3 2
3 3
4 1
and I would like to write a query that would return a table that looks like this:
vVideoCategory:
VideoID | VideoName | category1 | category2 | category3
1 video 1 false false true
2 video 2 true true false
3 video 3 true true true
4 video 4 true false false
I've tried looking around for examples but haven't quite found anything that seems the same. Any help would be appreciated, thanks.
Definitely looking for something that allows for changing and adding/deleting categories.