Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inability to Insert Order_Items with Product IDs Beyond 16 in Products Table #22

Open
shirinyamani opened this issue Jan 14, 2024 · 0 comments

Comments

@shirinyamani
Copy link

In the current database schema, the Order_Items table has a FOREIGN KEY constraint referencing the Products table on the 'product_id' column. However, the Products table contains only 16 unique product IDs. This setup poses a potential issue during data insertion into the Order_Items table. If more than 16 entries are attempted in the Order_Items table with product IDs exceeding 16, it will trigger a foreign key constraint violation. This limitation could be addressed by ensuring that the Order_Items table does not reference product IDs beyond the existing range in the Products table, or by expanding the range of product IDs in the Products table to accommodate future entries in Order_Items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant