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

feat: Added a new SQL question (DROP TABLE) #128

Merged
merged 1 commit into from
Oct 1, 2022
Merged
Changes from all 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
9 changes: 9 additions & 0 deletions src/data/sql-quiz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,15 @@ const sqlQuiz = [
"The CHECK constraint is used to limit the range of values that can be placed in a column.",
Link: "https://www.freecodecamp.org/news/basic-sql-commands/",
},
{
Question: "In SQL, what is the command used to delete a table?",
Answer: "DROP TABLE table_name",
Distractor1: "REMOVE TABLE table_name",
Distractor2: "DELETE TABLE table_name",
Distractor3: "ALTER TABLE table_name",
Explanation: "The DROP TABLE command is used to delete an entire table.",
Link: "https://www.freecodecamp.org/news/learn-sql-queries-database-query-tutorial-for-beginners/",
},
];

export default sqlQuiz;