Create Column Of Values

Create Table

-- Create table called adventurers
CREATE TABLE adventurers (
    -- string variable
    name varchar(255),
    -- integer variable
    age int,
    -- string variable
    race varchar(255),
    -- string variable
    weapon varchar(255)
)

Insert Rows

-- Insert into the table adventurers
INSERT INTO adventurers (name, age, race, weapon)
VALUES ('Fjoak Doom-Wife', 28, 'Human', 'Axe'),
       ('Alooneric Cortte', 29, 'Elf', 'Bow'),
       ('Piperel Ramsay', 35, 'Elf', 'Sword'),
       ('Casimir Yardley', 14, 'Elf', 'Magic')

Create Column Of Values

-- Get all rows and add a row called training where all values are 'elite'
SELECT *, 'elite' as training FROM adventurers
nameageraceweapontraining
Fjoak Doom-Wife28HumanAxeelite
Alooneric Cortte29ElfBowelite
Piperel Ramsay35ElfSwordelite
Casimir Yardley14ElfMagicelite