Skip to content

Relational DB Concepts and Tables :Databases and SQL for Data Science with Python (IBM Data Analyst Professional Certificate) Answers 2025

1. Question 1

Which statements about a database are correct?

  • ✅ A database is a logically coherent collection of data with some inherent meaning

  • ❌ Data can only be added and queried but not modified

  • ❌ Only SQL can query data

  • ❌ All of the above

Explanation:

Databases can be modified, and SQL is not the only way to query data (NoSQL exists).
Only the first statement is correct.


2. Question 2

Attributes of an entity become ________ in a table.

  • ❌ keys

  • ✅ columns

  • ❌ rows

  • ❌ constraints

Explanation:

Entity attributes → columns in a relational table.


3. Question 3

The CREATE TABLE statement is a ________.

  • ❌ DML

  • ✅ DDL

  • ❌ DQL

  • ❌ All of the above

Explanation:

CREATE TABLE defines structure → Data Definition Language.


4. Question 4

Command to remove a table and all its data:

  • ❌ TRUNCATE

  • ❌ ALTER

  • ✅ DROP table command

  • ❌ CREATE

Explanation:

DROP TABLE removes the entire table structure + data.


5. Question 5

Correct syntax to add a column ID with 7-character alphanumeric values in MySQL:

  • ❌ ALTER Employees ADD COLUMN ID varchar(7)

  • ❌ ALTER Employees TABLE ADD ID char

  • ❌ ALTER TABLE COLUMN Employees ID char(7)

  • ✅ ALTER TABLE Employees ADD ID char(7)

Explanation:

Syntax structure for MySQL:

ALTER TABLE table_name ADD column_name datatype;

🧾 Summary Table

Q Correct Answer Key Concept
1 Only first statement Database basics
2 Columns Attributes → columns
3 DDL CREATE TABLE
4 DROP TABLE Remove table completely
5 ALTER TABLE Employees ADD ID char(7) ALTER TABLE syntax