From 799c59314467364cfffe7e1a7ae1f5010e35853a Mon Sep 17 00:00:00 2001 From: Niraj <128296263+btrezzy@users.noreply.github.com> Date: Sun, 1 Oct 2023 13:01:04 +0530 Subject: [PATCH] feat: Added a new SQL question (#688) * added SQL question Adding SQL quiz questions freeCodeCamp#17 * Corrected code * changes made --- src/data/sql-quiz.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/data/sql-quiz.ts b/src/data/sql-quiz.ts index e0e0b0430..ab01ff095 100644 --- a/src/data/sql-quiz.ts +++ b/src/data/sql-quiz.ts @@ -752,6 +752,16 @@ const sqlQuiz = [ Explanation: "CHAR holds a fixed length string (up to 255 characters), while VARCHAR and TEXT hold variable length strings.", Link: "https://www.freecodecamp.org/news/sql-data-types-mysql/" + }, + { + Question: "In SQL, which of the following wildcards combined with the LIKE operator finds any value that has 'or' at any position?", + Answer: "%or%", + Distractor1: "__r%", + Distractor2: "a__%", + Distractor3: "or%", + Explanation: + "The SQL LIKE operator with '%or%' matches any values containing 'or' at any position within the string.", + Link: "https://youtu.be/-fW2X7fh7Yg?t=5881/" } ];