Skip to main contentSkip to solution

What is the answer of the following SQL query?

SELECT MID("Indian Constitution", 3,4);

Solution

✅ Correct Option: 1

MID(string, start, length) returns lengthlength characters beginning at position startstart (counting from 1). Here it starts at position 3 and takes 4 characters.

Position123456
CharacterIndian

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.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question