INSERT INTO customers (first_name, last_name, email)
VALUES ('Emily', 'Clark', 'emilyclark@email.com');
sqlCopy code
INSERT INTO movies (title, genre, rating, release_date)
VALUES ('Avatar', 'Sci-Fi', 7.8, '2009-12-18');
sqlCopy code
INSERT INTO ticket_purchases (customer_id, movie_id, purchase_date, show_time)
VALUES (4, 4, '2023-09-27', '21:00:00');
sqlCopy code
UPDATE customers
SET email = 'newemail@email.com'
WHERE customer_id = 4;
sqlCopy code
UPDATE movies
SET rating = 8.5
WHERE movie_id = 4;
sqlCopy code
DELETE FROM ticket_purchases
WHERE purchase_id = 3;
sqlCopy code
SELECT * FROM customers;
sqlCopy code
SELECT * FROM movies
WHERE release_date > '2000-01-01';
sqlCopy code
SELECT * FROM ticket_purchases
WHERE movie_id = 4;