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%”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

how can you insert into a table

A

INSERT INTO table (field1, field2)
VALUES (value1, value2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

how do u delete from a table

A

DELETE FROM table
WHERE field = condition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how do u update a table

A

UPDATE table
SET field = value
WHERE field = condition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly