InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

Explore practical questions, clear explanations, and code examples across developer technologies.

Showing 3193–3204 of 3610 questions

SQL & Database DesignBeginner1 min read

What is database design?

Database design is the process of modeling data, relationships, constraints, and access patterns so information remains accurate, maintainable, and efficie

SQL & Database DesignBeginner1 min read

What is a DBMS?

A database management system stores, retrieves, secures, and manages data. Examples include SQL Server, PostgreSQL, MySQL, and Oracle Database.

SQL & Database DesignBeginner1 min read

What is a relational database?

A relational database represents data using tables of rows and columns, with relationships expressed through keys and constraints.

SQL & Database DesignBeginner1 min read

What is a primary key?

A primary key uniquely identifies each row and cannot contain NULL. It may consist of one or multiple columns.

SQL & Database DesignBeginner1 min read

What is a foreign key?

A foreign key enforces a relationship by requiring referenced values to exist in a parent key, subject to NULL and constraint rules.

SQL & Database DesignBeginner1 min read

What is a candidate key?

A candidate key is a minimal set of attributes that uniquely identifies a row. One candidate key is chosen as the primary key; others can be alternate keys

SQL & Database DesignBeginner1 min read

What is a surrogate key?

A surrogate key is an artificial identifier, such as an identity integer or UUID, that has no business meaning.