Q1. SQL was developed as an integral part of...
Relational Database Management Systems (RDBMS). SQL is the ANSI-standard language for creating, querying, updating, and managing relational databases. Major implementatio...
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 (16 available).
Relational Database Management Systems (RDBMS). SQL is the ANSI-standard language for creating, querying, updating, and managing relational databases. Major implementatio...
**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 ...
MySQL doesn't have a native `BOOLEAN` type. It uses `TINYINT(1)` where `0` = false, `1` = true, and any non-zero value is treated as true in conditions. ```sql CREATE TAB...
SQL supports both single-line and multi-line commenting syntax across relational database engines: ### 1. Single-Line Standard Comment (`--`): The official ANSI SQL stand...
Relational SQL engines provide a rich set of comparison operators evaluated in `WHERE` and `HAVING` clauses: | Operator | Meaning | Example | | :--- | :--- | :--- | | `=`...
```sql -- MySQL SELECT * FROM tbl ORDER BY RAND() LIMIT 10; -- PostgreSQL SELECT * FROM tbl ORDER BY RANDOM() LIMIT 10; -- SQL Server SELECT TOP 10 * FROM tbl ORDER BY NE...
In MySQL, you retrieve the current date (year, month, day) without the time component using **`CURDATE()`** or **`CURRENT_DATE`**: ```sql SELECT CURDATE(); -- Example: '2...
```sql -- MySQL / PostgreSQL SELECT name, mark FROM Students ORDER BY mark DESC LIMIT 3; -- SQL Server SELECT TOP 3 name, mark FROM Students ORDER BY mark DESC; -- Oracle...
```sql SELECT name, COUNT(name) FROM customers GROUP BY name; ``` In standard SQL (and MySQL 5.7+ with `ONLY_FULL_GROUP_BY`), any non-aggregated column in SELECT must app...
```sql CREATE TEMPORARY TABLE temp_top_customers SELECT * FROM customers WHERE total_spent > 10000; ``` It exists only for the current session/connection and is automatic...
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.