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

videoez.sql does not populate the customer table on AWS RDS #3

Open
kingparra opened this issue Apr 21, 2023 · 0 comments
Open

videoez.sql does not populate the customer table on AWS RDS #3

kingparra opened this issue Apr 21, 2023 · 0 comments

Comments

@kingparra
Copy link

I created a PostgreSQL instance on AWS RDS, connected to it, created the videoez db, set it as the default, and then ran videoezy.sql.

Afterwards, I ran select * from customer;. The output is empty.

Running INSERT INTO customer VALUES (1, 1, 'MARY', 'SMITH', '[email protected]', 5, true, '2006-02-14', '2006-02-15 09:57:20', 1); results in the error SQL Error [23503]: ERROR: insert or update on table "customer" violates foreign key constraint "customer_store_id_fkey" Detail: Key (store_id)=(1) is not present in table "store".

Do you have any idea what is going on?

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