Infosys interview question

Solid principles oops sql design patterns