How do you insert data into a table using SQL?
INSERT INTO (field1, field2, field3 , ...)
VALUES ("value1", "value2", "value3", ...)How do you delete records from a database using SQL?
DELETE FROM (tablename)
WHERE (fieldname) = ("condition")How do you update records from a database using SQL?
UPDATE (tablename)
SET (headingY = “value”)
WHERE (headingX = “condition”)
How would you select all records that begin with an A?
SELECT (fieldname1, fieldname2, …)
FROM (tablename)
WHERE (fieldname) LIKE A%
How would you join 2 tables together?
Use a common fieldname in both tables:
JOIN (fieldname)
ON (1tablename.field = 2tablename.field)
WHERE (tablename.field = “value”)
How would you delete a table from SQL?
DROP TABLE (tablename)