Author Archives: Stanislav_Panteleev

SQL.What is composite key ?

What is a Composite Key? Definition A composite key is a key made of two or more columns that together uniquely identify a row, while each column alone is not sufficient. It can be: a composite primary key a composite … Continue reading →

Posted in Без рубрики | Comments Off on SQL.What is composite key ?

SQL.What is the difference between a primary key, a candidate key, and a unique constraint?

1️⃣ Candidate Key Definition A candidate key is any minimal set of columns that can uniquely identify a row in a table. Properties Uniqueness Minimal (no redundant columns) There can be multiple candidate keys per table Example Candidate keys: id … Continue reading →

Posted in Без рубрики | Comments Off on SQL.What is the difference between a primary key, a candidate key, and a unique constraint?

SQL.When we should use relational db and when not ?

When should you use a relational database? Use a relational DB by default unless you have a strong reason not to. ✅ Use a relational DB when: 1️⃣ You need strong consistency & correctness Financial transactions Orders, payments, balances Inventory, … Continue reading →

Posted in Без рубрики | Comments Off on SQL.When we should use relational db and when not ?

SQL.What types of databases exists ?

1️⃣ Relational Databases (SQL) Model Tables (rows & columns) Fixed schema Relations via foreign keys ACID transactions Examples PostgreSQL MySQL Oracle SQL Server Best for Business data Financial systems Strong consistency Complex queries & joins Interview keyword “Strong consistency, relational … Continue reading →

Posted in Без рубрики | Comments Off on SQL.What types of databases exists ?

SQL.What is SQL, and what does it mean that SQL is a declarative language?

What is SQL? SQL (Structured Query Language) is a standard language used to: Query data from relational databases Modify data (INSERT, UPDATE, DELETE) Define database structure (tables, indexes, constraints) Control access (GRANT, REVOKE) It operates on data stored in tables … Continue reading →

Posted in Без рубрики | Comments Off on SQL.What is SQL, and what does it mean that SQL is a declarative language?

SQL.What are the different SQL operators?

As a senior backend engineer, you’re expected to classify operators, not just list random ones. Short interview answer:SQL operators are used in expressions to compare values, filter rows, perform calculations, and combine conditions. They include arithmetic, comparison, logical, set, and … Continue reading →

Posted in Без рубрики | Comments Off on SQL.What are the different SQL operators?

Database.JPA Stream vs List: What Actually Happens Under the Hood

Introduction In JPA and Hibernate, repository methods can return either List<DTO> or Stream<DTO>.At first glance, this looks like a minor API choice. In reality, it reflects two fundamentally different data processing models with serious implications for memory usage, GC behavior, … Continue reading →

Posted in Без рубрики | Comments Off on Database.JPA Stream vs List: What Actually Happens Under the Hood

Sql.What is SQL?

SQL (Structured Query Language) is a declarative language used to define, query, and manipulate data in relational databases. Interview-friendly one-liner:SQL is a declarative language for working with relational data: you describe what data you want, not how to get it. … Continue reading →

Posted in Без рубрики | Comments Off on Sql.What is SQL?

Java.DBMigrationTools.What’s the impact of changing database credentials or URL during migration?

Changing database credentials or the JDBC URL during a migration is riskier than it sounds. The impact depends on when and how you change them, but the common failure mode is schema history divergence and partial application. Here’s how I’d … Continue reading →

Posted in Без рубрики | Comments Off on Java.DBMigrationTools.What’s the impact of changing database credentials or URL during migration?

Java.DBMigrationTools.What are common security concerns with migration tools?

Common security concerns with migration tools aren’t about “SQL is scary” — they’re about credentials, privileges, supply chain, and auditability. Here’s what I’d expect you to cover at a senior interview level. 1) Over-privileged migration accounts Risk: Migration user has … Continue reading →

Posted in Без рубрики | Comments Off on Java.DBMigrationTools.What are common security concerns with migration tools?