Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a new SQL question #688

Merged
merged 3 commits into from
Oct 1, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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?",
jdwilkin4 marked this conversation as resolved.
Show resolved Hide resolved
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