Q51. Inner join result?
An **`INNER JOIN`** returns only the subset of rows where the join predicate (`ON` condition) matches in **both** tables simultaneously: ### Visual Venn Diagram Concept: ...
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).
An **`INNER JOIN`** returns only the subset of rows where the join predicate (`ON` condition) matches in **both** tables simultaneously: ### Visual Venn Diagram Concept: ...
Yes. There's no practical limit (though performance degrades with many joins). ```sql SELECT f.name, d.name AS division, c.name AS country FROM faculty f INNER JOIN divis...
Yes — **SELF JOIN**. You must use aliases to distinguish the two instances. ```sql SELECT a.name AS employee, b.name AS manager FROM employees a, employees b WHERE a.mana...
A Cartesian product occurs when tables are joined **without a condition**. Every row in Table A pairs with every row in Table B: `m × n` rows total. It's usually a bug, b...
In relational algebra and set theory, the **INTERSECTION** of two sets $A \cap B$ yields only the tuples that appear in **both** relation sets simultaneously. ### SQL Imp...
In relational algebra, the **UNION** of two sets $A \cup B$ combines all distinct tuples from both relations into a single unified relation. ### `UNION` vs `UNION ALL` in...
| UNION | UNION ALL | |-------|-----------| | Removes duplicates | Keeps duplicates | | Slower (sort + dedup) | Faster | | Use when uniqueness matters | Use when sets are...
`MINUS` (Oracle) or `EXCEPT` (PostgreSQL/SQL Server): ```sql SELECT name FROM searchers WHERE product = 'X' EXCEPT SELECT name FROM buyers WHERE product = 'X'; ``` ---
A `SELECT` statement nested inside another SQL statement to supply values for filtering or computation is called a **subquery** (also known as an **inner query** or **nes...
Subqueries can be nested within virtually every major SQL clause and statement: 1. **`WHERE` Clause**: Filtering candidate rows (`WHERE id IN (SELECT ...)`) 2. **`FROM` C...
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.