NedFlanders
New Member
- Joined
- Mar 8, 2009
- Messages
- 3
I am taking a SQL class where we use Access 2007, and it is an online class.
The instructor is no help so I hope you guys are. The question I have goes like this.....
"Find the book title for each book written by author number 18. Use the IN operator in your query."
Now the book title is in one table, and the author number is in another table. The two tables have no rows or columns in common so I am guessing you use a subquery. This is what I tried...
SELECT TITLE
FROM BOOK
WHERE AUTHOR_NUM IN
(SELECT AUTHOR_NUM
FROM AUTHOR
WHERE AUTHOR_NUM='18'
I keep getting a box pop up saying ENTER PARAMETER VALUE and AUTHOR_NUM below it where you would type something in.
The instructor is no help so I hope you guys are. The question I have goes like this.....
"Find the book title for each book written by author number 18. Use the IN operator in your query."
Now the book title is in one table, and the author number is in another table. The two tables have no rows or columns in common so I am guessing you use a subquery. This is what I tried...
SELECT TITLE
FROM BOOK
WHERE AUTHOR_NUM IN
(SELECT AUTHOR_NUM
FROM AUTHOR
WHERE AUTHOR_NUM='18'
I keep getting a box pop up saying ENTER PARAMETER VALUE and AUTHOR_NUM below it where you would type something in.