Skip to content

Commit

Permalink
feat: Added a new SQL question (#688)
Browse files Browse the repository at this point in the history
* added SQL question

Adding SQL quiz questions #17

* Corrected code

* changes made
  • Loading branch information
npxpatel authored Oct 1, 2023
1 parent bb2d4f0 commit 799c593
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/data/sql-quiz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
}
];

Expand Down

0 comments on commit 799c593

Please sign in to comment.