Category: SQL & Databases

50 questions in SQL & Databases.

What is database seeding

· SQL & Databases

Populate databases with initial or test data using seed scripts and fixtures for development and testing.

How to implement soft deletes

· SQL & Databases

Preserve deleted rows for audit and recovery by implementing soft deletes with a flag or timestamp column.

How to choose data types for columns

· SQL & Databases

Select efficient and appropriate data types for columns based on domain, size, precision, and performance.

What are database relationships

· SQL & Databases

Understand the three fundamental database relationships and how they shape schema design.

What are database constraints

· SQL & Databases

Enforce rules at the database level using constraints to maintain valid and consistent data.

How to design ER diagrams

· SQL & Databases

Model entities, attributes, and relationships visually using Entity-Relationship diagrams before building schemas.

What is database normalization

· SQL & Databases

Understand normalization forms and how they reduce redundancy and improve data integrity in relational databases.