Is it possible to reference one column as multiple foreign keys?
I have few tables, and I want to reference one column from PDF table to multiple other tables. for example if PDF table select output looks like this: ITEM_TYPE ITEM_ID QUANTITY 1 23 3 2 12 1 it tells me: PDF have 3 Car Wheel Product, and 1 Car Template Header above; I wrote SQL code, but does not work properly: CREATE TABLE `pdf_created` ( `id` INT(10) UNSIGNED NOT NULL UNIQUE AUTO_INCREMENT, `pdf_id` INT(10) NOT NULL, `item_type` INT(3) UNSIGNED NOT NULL, `item_id` INT(10) UNSIGNED NOT NULL, `quantity` INT(3) NOT NULL, PRIMARY KEY (`id`), KEY `FK_pdf_id` (`pdf_id`), CONSTRAINT `FK_pdf_id`