SQL

Part I. Create a database login into Postgres sudo -u postgres psql show databases command to see all databases \l to create database shop just enter create database shop; Now I want to see that we really have created the database shop. "shop" must be in the list \l Let's continue with the shop database we have just created. For that, we need to connect the shop database \c shop See what is in the database. So far it should be "Did not find any relations" since we did not add anything to it. \d Let's create our first table named CUSTOMER by typing following create table customer( id serial primary key, name varchar(255), phone varchar(30), email varchar(255) ); You can type it in one line if you like. Check if the table has been created. Now the list should contain created database. \d Let's see more details about our first just created table CUSTOMER. \d customer Now it's time to create table PRODUCT ...