--:--









Quiz for ALTER

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



Logo

Q1: Which SQL command is used to modify the structure of an existing table?

Logo

Q2: What does the ALTER statement do in SQL?

Logo

Q3: Which keyword is used with ALTER to add a new column?

Logo

Q4: What is the correct syntax to change the datatype of a column?

Logo

Q5: Which clause is used to remove a column?

Logo

Q6: Can ALTER TABLE be used to rename a column?

Logo

Q7: Which of the following is used to rename a table?

Logo

Q8: What happens if you use ALTER TABLE without specifying a change?

Logo

Q9: Which DBMS allows changing column position using ALTER?

Logo

Q10: To rename a column, which keyword is used in MySQL?

Logo

Q11: Which of the following is valid to add multiple columns?

Logo

Q12: Which clause changes a column’s name in PostgreSQL?

Logo

Q13: Can you modify a column constraint with ALTER?

Logo

Q14: What happens if you try to drop a column that is used in a constraint?

Logo

Q15: Can ALTER be used to change a column’s default value?

Logo

Q16: What is the result of using ALTER TABLE with ADD PRIMARY KEY?

Logo

Q17: Can ALTER TABLE be used to add foreign keys?

Logo

Q18: Which ALTER syntax adds a NOT NULL constraint?

Logo

Q19: Which clause is used to drop a constraint?

Logo

Q20: Which SQL engine does not support ALTER?

Logo

Q21: Is it mandatory to commit after ALTER?

Are you ready to start test? Set your time limit