How to add foreign key in PostgreSQL
I created this first table named 'bookstore' where Primary Key is book_name: create table bookstore (book_name varchar primary key, author varchar, price decimal); I am trying to create a second table named 'name' where name is primary key. I want to make this primary key- author.name as a foreign key of bookstore.author. create table author (name varchar pr