Does a foreign key automatically create an index?
You have two tables: customers(id) and orders(customer_id). Each order references a customer through a foreign key. Which indexes are needed for this relationship? Do PostgreSQL and MySQL create them automatically? Explain what happens when a customer is deleted and how indexes affect joins between the tables.
ExplainIndexesMiddleBackendData EngineerQA