SUBSTRING_INDEX()()
SUBSTRING_INDEX()() is a SQL idea you prove with lookup by roll, not with a slogan.
SUBSTRING_INDEX()() order — meaning → PRIMARY KEY(roll) + INDEX → one limit. Dumping ten features helps nobody.
SUBSTRING_INDEX()() exists so Riya can keep lookup by roll correct in a big table.
SUBSTRING_INDEX()() shows up in a big table. Name lookup by roll, not “a real-world scenario”.
Don’t do this with SUBSTRING_INDEX()() — indexing a low-cardinality flag only. Interviewers spot it in ten seconds.
Place SUBSTRING_INDEX()() next to nearby SQL work — PRIMARY KEY(roll) + INDEX is the link.
Viva for SUBSTRING_INDEX()(): what it is → PRIMARY KEY(roll) + INDEX → the mistake (indexing a low-cardinality flag only).
Say SUBSTRING_INDEX()() in one breath, then PRIMARY KEY(roll) + INDEX, then indexing a low-cardinality flag only.