I am using microsoft access(unfortunately I have no choice) to create queries.
I have a main table that contains information about a book(one) and 2 secondary tables(many)
Book Table
ID,Title
Keyword Table
Keyword, foreign_key(ID from book table)
Author Table
Author Name, foreign_key(ID from book table)
I want to do the following:
Author,Keyword, Title, ID
Say I have the data like this
Book Table:
1 Bob's Poker Tips
2 Bob's Cookbook
Keyword Table
2 Baking
2 Stewing
1 Texas Holdem
Author Table
2 Joe Smith
2 Bob Perini
1 Bob Perini
If I query the author Bob Perini
I'm currently getting from my query:
ID,AUTHOR,KEYWORD,TITLE
1 Bob Perini Texas Holdem Bob's Poker Tips
2 Bob Perini Baking Bob's Cookbook
2 Bob Perini Stewing Bob's Cookbook
I want to get the following:
ID,AUTHOR,KEYWORD,TITLE
1 Bob Perini Texas Holdem Bob's Poker Tips
2 Bob Perini Baking,Stewing Bob's Cookbook
If you don't know the syntax for the Jet SQL engine, then feel free to share the theory or show me a query in someone other sql.
Thanks in advance