How to limit the select query with loop structure

Printable View