-- Preparation: Drop the index if it exists to ensure clean testing
DROP INDEX idx_title ON film
-- StCreate the 'film' table if it doesn't exist
CREATE TABLE IF NOT EXISTS film (
id INT PRIMARY KEY,
title VARCHAR(255),
rating VARCHAR(10)
)
-- -- Preparation: Drop the index if it exists to ensure clean testing
DROP INDEX IF EXISTS idx_title ON film
USE DB
-- Preparation: Drop the index if it exists to ensure clean testing
DROP INDEX idx_title ON film
-- Preparation: Drop the index if it exists to ensure clean testing
DROP INDEX idx_title ON film
-- Preparation: Drop the index if it exists to ensure clean testing
DROP INDEX IF EXISTS idx_title ON film
-- Preparation: Drop the index if it exists to ensure clean testing
DROP INDEX IF EXISTS idx_title ON film