(d) SQL – Interpret and modify. Flashcards
1
Q
What does SELECT * FROM Customers; do?
A
Retrieves all columns and rows from the Customers table.
2
Q
Write an SQL query to find customers in ‘London’.
A
SELECT * FROM Customers WHERE City = ‘London’;
3
Q
What does UPDATE do in SQL?
A
Modifies existing data in a table.
4
Q
What does DELETE FROM Orders WHERE OrderID = 101; do?
A
Deletes the order with OrderID 101 from the Orders table.
5
Q
What does JOIN do in SQL?
A
Combines rows from two or more tables based on a related column.