You are going to want to select from a JOIN
statement. In this case, an INNER JOIN
.
Try something like this:
SELECT i.itemName, i.pricePerUnit, c.itemQuantity FROM Items AS i INNER JOIN ContainsItems ON i.itemID = c.itemID WHERE i.invoiceID = @yourInvoiceID
Having aliases for tables in joins helps prevent collisions.