InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

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

Showing 3229–3240 of 3610 questions

SQL & Database DesignBeginner1 min read

What is a view?

A view is a named query that presents data as a virtual table. It can simplify repeated queries and help control which columns users can access.

SQL & Database DesignBeginner1 min read

What is a stored procedure?

A stored procedure is a named database program that can accept parameters and execute SQL statements. Syntax and capabilities vary by engine.

SQL & Database DesignBeginner1 min read

What is a trigger?

A trigger runs automatically in response to defined database events such as INSERT, UPDATE, or DELETE. Triggers can enforce specialized rules but can make

SQL & Database DesignBeginner1 min read

What is a transaction?

A transaction groups database changes into a unit that commits or rolls back together, subject to isolation and engine semantics.

SQL & Database DesignBeginner1 min read

What does ACID mean?

ACID means Atomicity, Consistency, Isolation, and Durability. These properties describe key transaction guarantees, with exact guarantees influenced by dat

SQL & Database DesignBeginner1 min read

What is a deadlock?

A deadlock occurs when transactions wait on resources held by each other in a cycle. The database usually chooses a victim transaction to roll back.

SQL & Database DesignBeginner1 min read

What is a database backup?

A backup is a recoverable copy of database data and sometimes logs or metadata. Backup frequency and type determine recovery options and data-loss exposure

SQL & Database DesignIntermediate1 min read

What is normalization to 1NF?

First Normal Form (1NF) generally requires each column value to be atomic for the chosen model and no repeating groups in a row.

SQL & Database DesignIntermediate1 min read

What is 2NF?

Second Normal Form requires 1NF and no non-key attribute to depend on only part of a candidate key. It matters particularly with composite keys.

SQL & Database DesignIntermediate1 min read

What is 3NF?

Third Normal Form requires 2NF and removes problematic transitive dependencies of non-key attributes on a key, according to formal definitions.

SQL & Database DesignIntermediate1 min read

What is BCNF?

Boyce-Codd Normal Form requires every determinant of a nontrivial functional dependency to be a candidate key. It is stricter than 3NF in certain cases.