Q1. How does MongoDB differ from a relational database?
MongoDB is a document database. Data is stored as flexible BSON documents inside collections instead of rows in tables with a fixed schema. Each document can have its own...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (119 available).
MongoDB is a document database. Data is stored as flexible BSON documents inside collections instead of rows in tables with a fixed schema. Each document can have its own...
Relational Database Management Systems (RDBMS). SQL is the ANSI-standard language for creating, querying, updating, and managing relational databases. Major implementatio...
Window functions compute a value across a set of rows related to the current row without collapsing them, unlike GROUP BY. They preserve row granularity. ```sql SELECT us...
**SQL** stands for **Structured Query Language**. Originally developed at IBM by Donald D. Chamberlin and Raymond F. Boyce in the early 1970s, it was initially named **SE...
Never concatenate user input into SQL. Use prepared statements with bound parameters, which separate code from data. ```php $stmt = $pdo->prepare('SELECT * FROM users WHE...
**Declarative (non-procedural)**. You state *what* result you want, not *how* to compute it. The database's **query optimizer** decides the "how" — which indexes to use, ...
**REMOVE** is not valid. To delete rows, use `DELETE`. `DROP` removes objects (tables, databases). | Command | Purpose | |---------|---------| | SELECT | Read data | | IN...
SQL (relational): rigid schema, ACID transactions, powerful joins and ad-hoc queries, mature tooling. Excel at structured, relational data with integrity requirements suc...
**SQL** is the *language* (like English). **MySQL** is a *database system* that *speaks* SQL (like a person who speaks English). Analogy: SQL is the recipe; MySQL is the ...
**PL/SQL** = Procedural Language extensions to SQL (Oracle-specific). It adds variables, loops, IF-ELSE, and exception handling. | SQL | PL/SQL | |-----|--------| | Singl...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.