InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

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

Showing 3217–3228 of 3610 questions

SQL & Database DesignBeginner1 min read

What is an ER diagram?

An entity-relationship diagram shows entities, attributes, and relationships with cardinality and optionality.

SQL & Database DesignBeginner1 min read

What is a junction table?

A junction or bridge table resolves a many-to-many relationship and may store attributes of the association itself.

SQL & Database DesignBeginner1 min read

What is a schema?

A schema is a namespace or logical container for database objects; exact behavior differs by database engine.

SQL & Database DesignBeginner1 min read

What is an index?

An index is a data structure that can help locate rows without scanning the entire table, at the cost of storage and write overhead.

SQL & Database DesignBeginner1 min read

What is a clustered index?

In SQL Server, a clustered index defines how table rows are organized at the leaf level of the index; a table can have only one clustered index. Other engi

SQL & Database DesignBeginner1 min read

What is a nonclustered index?

In SQL Server, a nonclustered index is a separate index structure that points to table rows or clustered keys. Other engines have their own index implement

SQL & Database DesignBeginner1 min read

What is a composite index?

A composite index contains multiple key columns. Column order matters because the leading columns influence which predicates and ordering can use the index

SQL & Database DesignBeginner1 min read

What is a covering index?

A covering index contains the key and included/available columns needed by a query, allowing the database to satisfy it from the index without fetching add