Is this possible? Currently I am trying to run these series of commands through my database. However, there is an issue with the last line that adds gifts. This is because this table has no primary key set. Do I need to set a primary key for it, or is there another way to deal with this?
SELECT b.title, p.name, m.gift
FROM books b
JOIN publisher p USING (pubid)
JOIN promotion m USING (gift);
Error code I am getting is.
SQL Error: ORA-00904: "from$_subquery$_003"."GIFT": invalid identifier 00904. 00000 - "%s: invalid identifier"