Sql Beginner);

INSERT INTO users (username, email, password)

VALUES ('Allan', 'allan@gmail.com', 'saaxcec'));
INSERT INTO users (username, email...

Photo by Andrew Neel on Unsplash

Sql Beginner); INSERT INTO users (username, email, password) VALUES ('Allan', 'allan@gmail.com', 'saaxcec')); INSERT INTO users (username, email...

INSTALLATION

https://docs.google.com/document/d/1RSgg6R0tbNiuN1TOYaP06dqG6YRgDJ4qJNoxkwcDdlg/edit?usp=sharing

https://phoenixnap.com/kb/install-mysql-ubuntu-20--04

CREATE DATABASE db;

USE db;

CREATE TABLE users (

user_id INT AUTO_INCREMENT PRIMARY KEY,

username VARCHAR(50)NOT NULL,

email VARCHAR(100) NOT NULL,

password VARCHAR (255) -- NO SEMICOLON

);

INSERT INTO users (username, email, password)

VALUES ('Allan', 'allan@gmail.com', 'saaxecec')

SELECT * FROM users;

SELECT item, amount FROM orders;

FROM orders

WHERE amount >= 20

ORDER BY amount DESC;

SELECT *

FROM orders

--wildcards

WHERE item LIKE 'ch%'; -- everything with ch

____ 4 underscores -- everything with 4 characters