Column definitions must be enclosed in parentheses after the table name.
Step 2: Check the given query
The query misses parentheses around id INT, name STRING, causing syntax error.
Final Answer:
Missing parentheses around column definitions -> Option B
Quick Check:
Columns need parentheses [OK]
Hint: Always use parentheses for columns in CREATE TABLE [OK]
Common Mistakes:
Forgetting parentheses
Assuming table name is wrong
Thinking data types are invalid
5. You want to create a database company_db and inside it a table departments with columns dept_id INT and dept_name STRING. Which sequence of commands is correct?
hard
A. CREATE TABLE company_db.departments (dept_id INT, dept_name STRING);