SQL for Beginners

PostgreSQL Example – How to do Self Join Table

Hits: 11 Self Join Table Create Table Of Adventurers – Create table called adventurers CREATE TABLE adventurers ( – string variable name varchar(255), – integer variable age int, – string variable child_of varchar(255) ) Insert Rows Into Adventurers Table INSERT INTO adventurers (name, age, child_of) VALUES (‘Dallar Woodfoot’, 25, NULL), (‘Cordin Garner’, 29, NULL), (‘Keat …

PostgreSQL Example – How to Right Join Tables

Hits: 13 Right Join Tables Create Table Of Adventurers – Create table called adventurers CREATE TABLE adventurers ( – string variable name varchar(255), – integer variable age int, – string variable race varchar(255) ) Create Table Of Adventurer’s Equipment – Create table called equipment CREATE TABLE equipment ( – string variable name varchar(255), – string …

PostgreSQL Example – How to Outer Join Tables

Hits: 14 Outer Join Tables Create Table Of Adventurers – Create table called adventurers CREATE TABLE adventurers ( – string variable name varchar(255), – integer variable age int, – string variable race varchar(255) ) Create Table Of Adventurer’s Equipment – Create table called equipment CREATE TABLE equipment ( – string variable name varchar(255), – string …

PostgreSQL Example – How to Create Left Join Tables

Hits: 7 Left Join Tables Create Table Of Adventurers – Create table called adventurers CREATE TABLE adventurers ( – string variable name varchar(255), – integer variable age int, – string variable race varchar(255) ) Create Table Of Adventurer’s Equipment – Create table called equipment CREATE TABLE equipment ( – string variable name varchar(255), – string …

PostgreSQL Example – How to Create Inner Join Tables

Hits: 7 Inner Join Tables Create Table Of Adventurers – Create table called adventurers CREATE TABLE adventurers ( – string variable name varchar(255), – integer variable age int, – string variable race varchar(255) ) Create Table Of Adventurer’s Equipment – Create table called equipment CREATE TABLE equipment ( – string variable name varchar(255), – string …

PostgreSQL Example – How to Concatenate Multiple Table

Hits: 32 Concatenate Multiple Table Create Table Of Elves – Create table called elves CREATE TABLE elves ( – string variable name varchar(255), – integer variable age int, – string variable race varchar(255), – string variable weapon varchar(255) ) Create Table Of Dwarves – Create table called dwarves CREATE TABLE dwarves ( – string variable …

PostgreSQL Example – How to Cartesian Product Of Tables

Hits: 11 Cartesian Product Of Tables Create Table Of Adventurers – Create table called adventurers CREATE TABLE adventurers ( – string variable name varchar(255), – integer variable age int, – string variable race varchar(255) ) Create Table Of Adventurer’s Equipment – Create table called equipment CREATE TABLE equipment ( – string variable name varchar(255), – …

PostgreSQL Example – How to All Unique Values In Two Tables

Hits: 6 All Unique Values In Two Tables Create Table Of Elves – Create table called elves CREATE TABLE elves ( – string variable name varchar(255), – integer variable age int, – string variable race varchar(255), – string variable weapon varchar(255) ) Create Table Of Dwarves – Create table called dwarves CREATE TABLE dwarves ( …