Okay, so I've got two tables. One table (table 1
) contains a column Books_Owned_ID
which stores a series of numbers in the form of 1,3,7
. I have another table (table 2
) which stores the Book names in one column and the book ID in another column.
What I want to do is create an SQL code which will take the numbers from Books_Owned_ID
and display the names of those books in a new column. Like so:
|New Column |
Book 1 Name
Book 2 Name
Book 3 Name
I can't wrap my head around this, it's simple enough but all the threads I look on get really confusing.
Table1
contains the following columns:
|First_Name| Last_Name| Books_Owned_ID |
Table2
contains the following columns:
|Book_Name|Book_ID|