robcampbell 1 Posted January 12, 2023 Posted January 12, 2023 How are the tables linked to view the cast? Version 4.6.7.0 Is this not possible?
Luke 42078 Posted January 13, 2023 Posted January 13, 2023 Hi, yes now take that and join on mediaitems with itemid
robcampbell 1 Posted January 13, 2023 Author Posted January 13, 2023 What am I joining? I am able to id the role, I am trying to the cast member's name. How am I joining UserDataKey2 to ItemPeople?
Solution Luke 42078 Posted January 13, 2023 Solution Posted January 13, 2023 This will give you cast, actor name, and media name altogether: select ItemPeople.*,MediaItemsPeople.Name as PersonName,MediaItemsMedia.Name as MediaName from ItemPeople join MediaItems MediaItemsPeople on MediaItemsPeople.Id=ItemPeople.PersonId join MediaItems MediaItemsMedia on MediaItemsMedia.Id=ItemPeople.ItemId order by MediaName,ListOrder I constructed this query using the 4.8 beta channel. It should work on 4.6 and 4.7 though I'm pretty sure. 1
robcampbell 1 Posted January 13, 2023 Author Posted January 13, 2023 Thank you. I didn't think to search MediaItems for people's name. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now