Skip to content

Commit

Permalink
added SQL question
Browse files Browse the repository at this point in the history
Adding SQL quiz questions #17
  • Loading branch information
npxpatel authored Sep 30, 2023
1 parent bb2d4f0 commit 852a8f4
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 LIKE operator finds any values that have "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 852a8f4

Please sign in to comment.