Posts

SQL Tutorials 10 hours

Image
Certainly! Here's a tutorial in the form of a flash card table for MySQL SQL commands: SQL Command & Explanation SQL Example SELECT - Retrieves data from one or more tables. SELECT first_name, last_name FROM employees; FROM - Specifies the table to retrieve data from. SELECT first_name FROM employees; WHERE - Filters records based on a condition. SELECT * FROM employees WHERE age > 30; AND , OR - Combine conditions in a WHERE clause. SELECT * FROM employees WHERE age > 30 AND department = 'HR'; ORDER BY - Sorts the result set. SELECT * FROM employees ORDER BY last_name ASC; INSERT INTO - Adds new records into a table. INSERT INTO employees (first_name, last_name) VALUES ('John', 'Doe'); UPDATE - Modifies existing records in a table. UPDATE employees SET age = 31 WHERE first_name = 'John' AND last_name = 'Doe'; DELETE - Removes records from a table. DELETE FROM employees WHERE last_name = 'Doe'; CREATE DATABASE - Cre