SyntaxFix
Write A Post
Hire A Developer
Questions
In the link you provided, thats not a loop in sql...
thats a loop in programming language
they are first getting list of all distinct districts, and then for each district executing query again.