(d) SQL – Interpret and modify. Flashcards

1
Q

What does SELECT * FROM Customers; do?

A

Retrieves all columns and rows from the Customers table.

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

Write an SQL query to find customers in ‘London’.

A

SELECT * FROM Customers WHERE City = ‘London’;

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

What does UPDATE do in SQL?

A

Modifies existing data in a table.

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

What does DELETE FROM Orders WHERE OrderID = 101; do?

A

Deletes the order with OrderID 101 from the Orders table.

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

What does JOIN do in SQL?

A

Combines rows from two or more tables based on a related column.

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