SQL Flashcards
1
Q
how would u only have the field “name” from the table “country” that starts with the letter “D”
A
SELECT name
FROM country
WHERE name LIKE “D%”
2
Q
how can you insert into a table
A
INSERT INTO table (field1, field2)
VALUES (value1, value2)
3
Q
how do u delete from a table
A
DELETE FROM table
WHERE field = condition
4
Q
how do u update a table
A
UPDATE table
SET field = value
WHERE field = condition