--:--









Quiz for CREATE

Course: SQL | Subject: SQL | Topic: Data Definition Language (DDL)



Logo

Q1: What does the CREATE command do in SQL?

Logo

Q2: What is the purpose of the CREATE TABLE statement in SQL?

Logo

Q3: Which keyword is used to define a primary key while creating a table?

Logo

Q4: Which of the following creates a table with an auto-incrementing ID?

Logo

Q5: How do you create a new database in SQL?

Logo

Q6: Which statement creates a table named students with id and name columns?

Logo

Q7: What is the correct data type to store date in SQL?

Logo

Q8: Which clause is used to ensure a column cannot have NULL values?

Logo

Q9: What does the UNIQUE constraint ensure?

Logo

Q10: How do you define a foreign key in CREATE TABLE?

Logo

Q11: Which command is used to create a view?

Logo

Q12: Which keyword is used to create a user-defined function?

Logo

Q13: What is the default length of VARCHAR if not specified?

Logo

Q14: What does the DEFAULT constraint do?

Logo

Q15: Which command creates an index on a table?

Logo

Q16: Which constraint ensures data integrity between two tables?

Logo

Q17: Can you create a table without any columns?

Logo

Q18: Which of the following creates a temporary table?

Logo

Q19: Which SQL statement creates a new sequence?

Logo

Q20: Which data type is best for fixed-length strings?

Logo

Q21: Which keyword is used to prevent table creation if it already exists?

Are you ready to start test? Set your time limit