What is the answer of the following SQL query?
SELECT MID("Indian Constitution", 3,4);
What is the answer of the following SQL query?
SELECT MID("Indian Constitution", 3,4);
Solution
✅ Correct Option: 1
MID(string, start, length) returns characters beginning at position (counting from 1). Here it starts at position 3 and takes 4 characters.
| Position | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
| Character | I | n | d | i | a | n |
Positions 3 to 6 give "dian".
Option 2: "ian" has only 3 characters, but the length given is 4.
Option 3: "Cons" starts at position 8, not 3.
Option 4: "dian Co" has 7 characters, but the length given is 4.
Related questions:
2026: 29 May Shift 1
2026: 19 May Shift 1
2026: 29 May Shift 2
2025: 3 June Shift 2
2026: 21 May Shift 1
2026: 11 May Shift 2