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 (10 available).
Relational Database Management Systems (RDBMS). SQL is the ANSI-standard language for creating, querying, updating, and managing relational databases. Major implementatio...
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...
The client generates a unique key per logical operation and sends it in a header, typically `Idempotency-Key`. ```http POST /payments Idempotency-Key: 4d7c2e6a-2b1f-4f9a-...
```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...
Converts to uppercase. `LOWER` to lowercase. `INITCAP` (Oracle/PostgreSQL) capitalizes first letter of each word. ```sql SELECT UPPER('hello'); -- HELLO ```
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...
`MINUS` (Oracle) or `EXCEPT` (PostgreSQL/SQL Server): ```sql SELECT name FROM searchers WHERE product = 'X' EXCEPT SELECT name FROM buyers WHERE product = 'X'; ``` ---
Automatically generates sequential unique integers for a column, typically the PRIMARY KEY. ```sql CREATE TABLE users (id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(50)...
```sql -- MySQL ALTER TABLE Customer CHANGE Address Addr VARCHAR(50); -- PostgreSQL / Standard ALTER TABLE Customer RENAME COLUMN Address TO Addr; ```
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.