sheetspread
Well-known Member
- Joined
- Sep 19, 2005
- Messages
- 5,158
In the TVShows table I have the fields TVShow, Characters, and Age
In query 1 I have the same table with an extra column holding the subselect expression:
Expr1: (select sum(Age) from TVShows where TVShow = x.TVShow)
That works, I get the sum of ages for each show.
However, I'd like to create an independent table (called CertainTVShows) with a TVShow field where I enter the name of shows and write another query with a similar subselect that totals the ages from the original TVShows table that correspond to the shows I've entered in the CertainTVShows table. I thought it was just as simple as adding another:
Expr1: (select sum(Age) from TVShows where TVShow = x.TVShow) but it's not. I get the "Enter Parameter Value" x.TVShow question box and kind of understand why. The query won't match the TVShow fields from the different tables. How do I modify this expression to get results?
In query 1 I have the same table with an extra column holding the subselect expression:
Expr1: (select sum(Age) from TVShows where TVShow = x.TVShow)
That works, I get the sum of ages for each show.
However, I'd like to create an independent table (called CertainTVShows) with a TVShow field where I enter the name of shows and write another query with a similar subselect that totals the ages from the original TVShows table that correspond to the shows I've entered in the CertainTVShows table. I thought it was just as simple as adding another:
Expr1: (select sum(Age) from TVShows where TVShow = x.TVShow) but it's not. I get the "Enter Parameter Value" x.TVShow question box and kind of understand why. The query won't match the TVShow fields from the different tables. How do I modify this expression to get results?