You are working with the tables as shown in this diagram. You need to make sure that any record added to the purchases table consists of a customerID, which already exists in the customers table, and a carID, which already exists in the cars table. You decide to use a trigger to do the validation. Which one do you use?

🎲 Try a Random Question  |  Total Questions in Quiz: 98  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
MySQL Test — practice the complete quiz, review flashcards, or try a random question.

MySQL MCQs For LinkedIn Skill Assessments.


You are working with the tables as shown in this diagram. You need to make sure that any record added to the purchases table consists of a customerID, which already exists in the customers table, and a carID, which already exists in the cars table. You decide to use a trigger to do the validation. Which one do you use?<br><img src='https://www.fatskills.com/images2/mysql/mysql_q43.jpg' >